aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/alacarte
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-12-26 09:49:02 +0800
committerpav <pav@FreeBSD.org>2005-12-26 09:49:02 +0800
commit2cc26f8a02f00ab5c6cacc599472666790484223 (patch)
tree5eb3e9b82026192ddfb21230cfc5276d6f67c70f /deskutils/alacarte
parentd28177dcb88f87b0bccbb1b238828d6148beacfb (diff)
downloadfreebsd-ports-gnome-2cc26f8a02f00ab5c6cacc599472666790484223.tar.gz
freebsd-ports-gnome-2cc26f8a02f00ab5c6cacc599472666790484223.tar.zst
freebsd-ports-gnome-2cc26f8a02f00ab5c6cacc599472666790484223.zip
Fix editing of entries which got no icon
PR: ports/90857 4 Submitted by: Chris Chou <m2chrischou@gmail.com>
Diffstat (limited to 'deskutils/alacarte')
-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 000000000000..87e3221c7837
--- /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