Limit gramplets showing on Gramplet View, and made add list faster
svn: r17215
This commit is contained in:
parent
1642873b75
commit
36ac62e981
@ -1369,12 +1369,8 @@ class GrampletPane(gtk.ScrolledWindow):
|
||||
if ag_menu:
|
||||
qr_menu = ag_menu.get_submenu()
|
||||
qr_menu = gtk.Menu()
|
||||
names = []
|
||||
for name in AVAILABLE_GRAMPLETS():
|
||||
if (GET_AVAILABLE_GRAMPLETS(name)["navtypes"] == [] or
|
||||
self.pageview.navigation_type() in GET_AVAILABLE_GRAMPLETS(name)["navtypes"] or
|
||||
self.pageview.navigation_type() is None):
|
||||
names.append(GET_AVAILABLE_GRAMPLETS(name)["tname"])
|
||||
names = [gplug.name for gplug in PLUGMAN.get_reg_gramplets()
|
||||
if gplug.navtypes == []]
|
||||
names.sort()
|
||||
for name in names:
|
||||
add_menuitem(qr_menu, name, None, self.add_gramplet)
|
||||
|
Loading…
Reference in New Issue
Block a user