ports/90857: Alacarte can not modify menu items without icon

Chris Chou m2chrischou at gmail.com
Fri Dec 23 16:40:25 UTC 2005


>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 at 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.
 



More information about the freebsd-ports-bugs mailing list