Date: Fri, 23 Dec 2005 16:31:22 GMT From: Chris Chou <m2chrischou@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/90857: Alacarte can not modify menu items without icon Message-ID: <200512231631.jBNGVMX9046889@www.freebsd.org> Resent-Message-ID: <200512231640.jBNGe5Cn076607@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 90857 >Category: ports >Synopsis: Alacarte can not modify menu items without icon >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 23 16:40:05 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Chris Chou >Release: FreeBSD 6.0 i386 >Organization: Sun Yat-sen University >Environment: FreeBSD www.itsphere.com 6.0-STABLE FreeBSD 6.0-STABLE #15: Tue Dec 13 22:30:02 CST 2005 chris@www.itsphere.com:/usr/obj/usr/src/sys/CHRIS i386 >Description: Alacarte can not modify menu items without icon specified. >How-To-Repeat: >Fix: --- GnomeDialogHandler.py Fri Dec 23 23:51:02 2005 +++ GnomeDialogHandler.py.origin Fri Dec 23 23:50:27 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 >Release-Note: >Audit-Trail: >Unformatted: >cd /usr/ports/deskutils/alacarte >make install clean >alacarte Double click the menu items (application entry) without icon specified.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512231631.jBNGVMX9046889>