Newly loaded Gramplets from the Plugins Reload are now available
svn: r12310
This commit is contained in:
parent
fca98024fc
commit
12a642b166
@ -1572,15 +1572,14 @@ class GrampletView(PageView.PersonNavView):
|
|||||||
ag_menu = self.uistate.uimanager.get_widget('/Popup/AddGramplet')
|
ag_menu = self.uistate.uimanager.get_widget('/Popup/AddGramplet')
|
||||||
if ag_menu:
|
if ag_menu:
|
||||||
qr_menu = ag_menu.get_submenu()
|
qr_menu = ag_menu.get_submenu()
|
||||||
if qr_menu is None:
|
qr_menu = gtk.Menu()
|
||||||
qr_menu = gtk.Menu()
|
names = [AVAILABLE_GRAMPLETS[key]["tname"] for key
|
||||||
names = [AVAILABLE_GRAMPLETS[key]["tname"] for key
|
in AVAILABLE_GRAMPLETS.keys()]
|
||||||
in AVAILABLE_GRAMPLETS.keys()]
|
names.sort()
|
||||||
names.sort()
|
for name in names:
|
||||||
for name in names:
|
Utils.add_menuitem(qr_menu, name,
|
||||||
Utils.add_menuitem(qr_menu, name,
|
None, self.add_gramplet)
|
||||||
None, self.add_gramplet)
|
self.uistate.uimanager.get_widget('/Popup/AddGramplet').set_submenu(qr_menu)
|
||||||
self.uistate.uimanager.get_widget('/Popup/AddGramplet').set_submenu(qr_menu)
|
|
||||||
rg_menu = self.uistate.uimanager.get_widget('/Popup/RestoreGramplet')
|
rg_menu = self.uistate.uimanager.get_widget('/Popup/RestoreGramplet')
|
||||||
if rg_menu:
|
if rg_menu:
|
||||||
qr_menu = rg_menu.get_submenu()
|
qr_menu = rg_menu.get_submenu()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user