From b74af33a4be37fbc24602a772be02fe7ffacd27c Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 26 Dec 2005 01:49:02 +0000 Subject: Fix editing of entries which got no icon PR: ports/90857 4 Submitted by: Chris Chou --- .../alacarte/files/patch-GnomeDialogHandler.py | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 deskutils/alacarte/files/patch-GnomeDialogHandler.py (limited to 'deskutils/alacarte') 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 -- cgit v1.2.3