Move panel data read to when we need it

This commit is contained in:
Michael Webster 2013-03-09 11:46:36 -05:00
parent 9895c54409
commit 5acc22b66e

View File

@ -339,8 +339,7 @@ class pluginclass( object ):
self.refresh_apt_cache()
self.suggestions = []
self.current_suggestion = None
self.get_panel()
self.builder.get_object("searchButton").connect( "button-release-event", self.searchPopup )
def refresh_apt_cache(self):
@ -1171,6 +1170,7 @@ class pluginclass( object ):
print detail
def add_to_panel(self, widget, desktopEntry):
self.get_panel()
i = 0
panel_schema = Gio.Settings.new("org.mate.panel")
applet_list = panel_schema.get_strv("object-id-list")