~fresh13/dockmanager/deluge_helper

« back to all changes in this revision

Viewing changes to scripts/dockmanager/dockmanager.py.in

  • Committer: Robert Dyer
  • Date: 2010-12-20 00:35:52 UTC
  • Revision ID: psybers@gmail.com-20101220003552-btur8nx8fsaz05s6
betterĀ code

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                        hints = {"label":name}
59
59
                        if group:
60
60
                                hints["container-title"] = group
61
 
                        if icon:
 
61
                        if icon and not icon == "":
62
62
                                hint = "icon-name" if not os.path.isabs(icon) else "icon-file"
63
63
                                hints[hint] = icon
64
64
                        menu_id = self.iface.AddMenuItem(hints)
75
75
                                return menu_id
76
76
                except dbus.DBusException, e:
77
77
                        return None
78
 
                return add_menu_item(title or uri, "", group)
 
78
                return add_menu_item(title or uri, None, group)
79
79
 
80
80
        def remove_menu_item(self, menu_id):
81
81
                if menu_id in self.id_map: