diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-12-26 01:49:02 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-12-26 01:49:02 +0000 |
commit | b74af33a4be37fbc24602a772be02fe7ffacd27c (patch) | |
tree | f5acac5a7e126474431348d246f56e48e878312a /deskutils/alacarte/files | |
parent | ab4cf409c3c78f8b46d8b548bff65889a0adeb1a (diff) | |
download | ports-b74af33a4be37fbc24602a772be02fe7ffacd27c.tar.gz ports-b74af33a4be37fbc24602a772be02fe7ffacd27c.zip |
Fix editing of entries which got no icon
PR: ports/90857
4 Submitted by: Chris Chou <m2chrischou@gmail.com>
Notes
Notes:
svn path=/head/; revision=152065
Diffstat (limited to 'deskutils/alacarte/files')
-rw-r--r-- | deskutils/alacarte/files/patch-GnomeDialogHandler.py | 26 |
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 |