From 12a642b1667078632050b555567630122afd508f Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 11 Mar 2009 02:41:30 +0000 Subject: [PATCH] Newly loaded Gramplets from the Plugins Reload are now available svn: r12310 --- src/DataViews/GrampletView.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 00e55e623..7ca8bf63f 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -1572,15 +1572,14 @@ class GrampletView(PageView.PersonNavView): ag_menu = self.uistate.uimanager.get_widget('/Popup/AddGramplet') if ag_menu: qr_menu = ag_menu.get_submenu() - if qr_menu is None: - qr_menu = gtk.Menu() - names = [AVAILABLE_GRAMPLETS[key]["tname"] for key - in AVAILABLE_GRAMPLETS.keys()] - names.sort() - for name in names: - Utils.add_menuitem(qr_menu, name, - None, self.add_gramplet) - self.uistate.uimanager.get_widget('/Popup/AddGramplet').set_submenu(qr_menu) + qr_menu = gtk.Menu() + names = [AVAILABLE_GRAMPLETS[key]["tname"] for key + in AVAILABLE_GRAMPLETS.keys()] + names.sort() + for name in names: + Utils.add_menuitem(qr_menu, name, + None, self.add_gramplet) + self.uistate.uimanager.get_widget('/Popup/AddGramplet').set_submenu(qr_menu) rg_menu = self.uistate.uimanager.get_widget('/Popup/RestoreGramplet') if rg_menu: qr_menu = rg_menu.get_submenu()