summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarri Nieminen <moikkis@gmail.com>2017-02-05 13:41:59 +0200
committerDavid Seifert <soap@gentoo.org>2017-02-05 20:06:51 +0100
commitf162e6dab285aefc570d27f9b0f075065bc2309b (patch)
treef459101e78d3c5c6f1a261c81508e41aac66c531 /x11-misc/driconf/files
parentdev-libs/cryptlib: fixups (diff)
downloadgentoo-f162e6dab285aefc570d27f9b0f075065bc2309b.tar.gz
gentoo-f162e6dab285aefc570d27f9b0f075065bc2309b.tar.bz2
gentoo-f162e6dab285aefc570d27f9b0f075065bc2309b.zip
x11-misc/driconf: Bump eapi, use newer python eclass, fix issues
Fixes: https://bugs.gentoo.org/352016 drop-old-tooltips patch is made by Rafał Mużyło, see bug #352016 Also fixes following QA issuses: * /usr/share/applications/driconf.desktop: error: value "GNOME;Application;Settings;AdvancedSettings;" for key "Categories" in group "Desktop Entry" contains an unregistered value "AdvancedSettings"; values extending the format should start with "X-" * /usr/share/applications/driconf.desktop: warning: value "GNOME;Application;Settings;AdvancedSettings;" for key "Categories" in group "Desktop Entry" contains a deprecated value "Application" Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3826
Diffstat (limited to 'x11-misc/driconf/files')
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-desktop-menu.patch9
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch4
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-drop-old-tooltips.patch61
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch4
-rw-r--r--x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch4
5 files changed, 76 insertions, 6 deletions
diff --git a/x11-misc/driconf/files/driconf-0.9.1-desktop-menu.patch b/x11-misc/driconf/files/driconf-0.9.1-desktop-menu.patch
new file mode 100644
index 000000000000..a8ca98412740
--- /dev/null
+++ b/x11-misc/driconf/files/driconf-0.9.1-desktop-menu.patch
@@ -0,0 +1,9 @@
+--- a/driconf.desktop 2006-09-18 04:41:45.000000000 +0300
++++ b/driconf.desktop 2017-02-05 13:14:11.319444931 +0200
+@@ -5,5 +5,5 @@
+ Exec=driconf
+ Icon=/usr/local/share/driconf/driconf-icon.png
+ Type=Application
+-Categories=GNOME;Application;Settings;AdvancedSettings;
++Categories=GNOME;Settings;HardwareSettings;
+ StartupNotify=true
diff --git a/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch b/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch
index fb661c819be2..71403cd7162e 100644
--- a/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch
+++ b/x11-misc/driconf/files/driconf-0.9.1-driconf_simpleui.py.patch
@@ -1,7 +1,7 @@
http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/
---- driconf_simpleui.py
-+++ driconf_simpleui.py
+--- a/driconf_simpleui.py
++++ b/driconf_simpleui.py
@@ -266,8 +266,8 @@
j = i
break
diff --git a/x11-misc/driconf/files/driconf-0.9.1-drop-old-tooltips.patch b/x11-misc/driconf/files/driconf-0.9.1-drop-old-tooltips.patch
new file mode 100644
index 000000000000..65291defb988
--- /dev/null
+++ b/x11-misc/driconf/files/driconf-0.9.1-drop-old-tooltips.patch
@@ -0,0 +1,61 @@
+diff -ur driconf-0.9.1-old/driconf_commonui.py driconf-0.9.1/driconf_commonui.py
+--- a/driconf_commonui.py 2006-09-18 04:03:43.000000000 +0200
++++ b/driconf_commonui.py 2011-01-09 21:09:43.000000000 +0100
+@@ -299,8 +299,7 @@
+ self.label.set_active (page.app.options.has_key (opt.name))
+ self.label.set_sensitive (page.app.device.config.writable)
+ self.label.connect ("clicked", self.checkOpt)
+- tooltipString = str(opt)
+- page.tooltips.set_tip (self.label, tooltipString)
++ self.label.set_tooltip_text (str(opt))
+ self.label.show()
+ page.table.attach (self.label, 0, 1, i, i+1,
+ gtk.EXPAND|gtk.FILL, 0, 5, 5)
+@@ -316,10 +315,10 @@
+ self.resetButton.set_relief (gtk.RELIEF_NONE)
+ self.resetButton.set_sensitive (sensitive)
+ if removable:
+- page.tooltips.set_tip(self.resetButton, _("Remove"))
++ self.resetButton.set_tooltip_text(_("Remove"))
+ self.resetButton.connect ("clicked", self.removeOpt)
+ else:
+- page.tooltips.set_tip(self.resetButton, _("Reset to default value"))
++ self.resetButton.set_tooltip_text(_("Reset to default value"))
+ self.resetButton.connect ("clicked", self.resetOpt)
+ self.resetButton.show()
+ page.table.attach (self.resetButton, 2, 3, i, i+1, 0, 0, 5, 5)
+@@ -510,7 +509,6 @@
+ self.optSection = optSection
+ self.app = app
+ self.simple = simple
+- self.tooltips = gtk.Tooltips()
+ self.table = gtk.Table (len(optSection.optList), 3)
+ self.optLines = []
+ for i in range (len(optSection.optList)):
+diff -ur driconf-0.9.1-old/driconf_complexui.py driconf-0.9.1/driconf_complexui.py
+--- a/driconf_complexui.py 2006-09-18 02:53:44.000000000 +0200
++++ b/driconf_complexui.py 2011-01-09 21:10:29.000000000 +0100
+@@ -41,11 +41,10 @@
+ self.set_label_widget (frameLabel)
+ self.driver = driver
+ self.app = app
+- tooltips = gtk.Tooltips()
+ table = gtk.Table(2, 2)
+ self.execCheck = WrappingCheckButton (_("Apply only to this executable"))
+ self.execCheck.set_sensitive (app.device.config.writable)
+- tooltips.set_tip (self.execCheck, _(
++ self.execCheck.set_tooltip_text (_(
+ "Leave this disabled to configure all applications.\n"
+ "Beware that some applications or games are just a shell script "
+ "that starts a real executable with a different name."))
+diff -ur driconf-0.9.1-old/driconf_simpleui.py driconf-0.9.1/driconf_simpleui.py
+--- a/driconf_simpleui.py 2006-09-18 02:49:54.000000000 +0200
++++ b/driconf_simpleui.py 2011-01-09 21:10:51.000000000 +0100
+@@ -342,7 +342,6 @@
+ self.set_policy (gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
+ self.driver = driver
+ self.app = app
+- self.tooltips = gtk.Tooltips()
+ self.table = None
+ self.refreshOptions()
+
diff --git a/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch b/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch
index df4155025255..2df25d5ecc23 100644
--- a/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch
+++ b/x11-misc/driconf/files/driconf-0.9.1-glxinfo-unicode.patch
@@ -1,7 +1,7 @@
http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/
---- driconf_simpleui.py
-+++ driconf_simpleui.py
+--- a/driconf_simpleui.py
++++ b/driconf_simpleui.py
@@ -450,11 +450,13 @@ class MainWindow (gtk.Window):
else:
screen = self.screens[0]
diff --git a/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch b/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch
index d6ce7e5c73e9..294c262d465c 100644
--- a/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch
+++ b/x11-misc/driconf/files/driconf-0.9.1-update-toolbar-methods.patch
@@ -1,7 +1,7 @@
http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/
---- driconf_complexui.py
-+++ driconf_complexui.py
+--- a/driconf_complexui.py
++++ b/driconf_complexui.py
@@ -838,42 +838,73 @@ class MainWindow (gtk.Window):
self.paned.show()
self.toolbar = gtk.Toolbar ()