summaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-12-26 01:49:02 +0000
committerpav <pav@FreeBSD.org>2005-12-26 01:49:02 +0000
commit2cc26f8a02f00ab5c6cacc599472666790484223 (patch)
tree5eb3e9b82026192ddfb21230cfc5276d6f67c70f /deskutils
parentd28177dcb88f87b0bccbb1b238828d6148beacfb (diff)
downloadFreeBSD-ports-2cc26f8a02f00ab5c6cacc599472666790484223.zip
FreeBSD-ports-2cc26f8a02f00ab5c6cacc599472666790484223.tar.gz
Fix editing of entries which got no icon
PR: ports/90857 4 Submitted by: Chris Chou <m2chrischou@gmail.com>
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/alacarte/files/patch-GnomeDialogHandler.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/deskutils/alacarte/files/patch-GnomeDialogHandler.py b/deskutils/alacarte/files/patch-GnomeDialogHandler.py
new file mode 100644
index 0000000..87e3221
--- /dev/null
+++ b/deskutils/alacarte/files/patch-GnomeDialogHandler.py
@@ -0,0 +1,26 @@
+--- src/Alacarte/GnomeDialogHandler.py.orig Tue Oct 25 22:13:44 2005
++++ src/Alacarte/GnomeDialogHandler.py Mon Dec 26 02:44:14 2005
+@@ -212,7 +212,10 @@
+ )
+ commandEntry.gtk_entry().set_completion(self.completion)
+ iconButton = self.tree.get_widget('eiconbutton')
+- iconButton.set_pixmap_subdir(item.iconPath)
++ if item.iconPath == None:
++ iconButton.set_pixmap_subdir('')
++ else:
++ iconButton.set_pixmap_subdir(item.iconPath)
+ termCheck = self.tree.get_widget('etermcheck')
+ originalValues = (
+ item.getKey('Name'), item.getKey('Comment'), item.getKey('Exec'),
+@@ -221,7 +224,10 @@
+ nameEntry.set_text(item.getKey('Name'))
+ commentEntry.set_text(item.getKey('Comment'))
+ commandEntry.set_filename(item.getKey('Exec'))
+- iconButton.set_filename(item.iconPath)
++ if item.iconPath == None:
++ iconButton.set_filename('')
++ else:
++ iconButton.set_filename(item.iconPath)
+ if item.getKey('Terminal') == 'true':
+ termCheck.set_active(1)
+ self.setupEntry = False
OpenPOWER on IntegriCloud