Move panel data read to when we need it
This commit is contained in:
parent
9895c54409
commit
5acc22b66e
@ -339,7 +339,6 @@ class pluginclass( object ):
|
|||||||
self.refresh_apt_cache()
|
self.refresh_apt_cache()
|
||||||
self.suggestions = []
|
self.suggestions = []
|
||||||
self.current_suggestion = None
|
self.current_suggestion = None
|
||||||
self.get_panel()
|
|
||||||
|
|
||||||
self.builder.get_object("searchButton").connect( "button-release-event", self.searchPopup )
|
self.builder.get_object("searchButton").connect( "button-release-event", self.searchPopup )
|
||||||
|
|
||||||
@ -1171,6 +1170,7 @@ class pluginclass( object ):
|
|||||||
print detail
|
print detail
|
||||||
|
|
||||||
def add_to_panel(self, widget, desktopEntry):
|
def add_to_panel(self, widget, desktopEntry):
|
||||||
|
self.get_panel()
|
||||||
i = 0
|
i = 0
|
||||||
panel_schema = Gio.Settings.new("org.mate.panel")
|
panel_schema = Gio.Settings.new("org.mate.panel")
|
||||||
applet_list = panel_schema.get_strv("object-id-list")
|
applet_list = panel_schema.get_strv("object-id-list")
|
||||||
|
Loading…
Reference in New Issue
Block a user