But make sure to initialize the panel and panel_position properties

immediately
This commit is contained in:
Michael Webster 2013-03-09 11:50:43 -05:00
parent 5acc22b66e
commit fcbbbccb1f

View File

@ -339,6 +339,8 @@ class pluginclass( object ):
self.refresh_apt_cache() self.refresh_apt_cache()
self.suggestions = [] self.suggestions = []
self.current_suggestion = None self.current_suggestion = None
self.panel = "top"
self.panel_position = -1
self.builder.get_object("searchButton").connect( "button-release-event", self.searchPopup ) self.builder.get_object("searchButton").connect( "button-release-event", self.searchPopup )
@ -348,8 +350,6 @@ class pluginclass( object ):
os.system("/usr/lib/linuxmint/mintMenu/plugins/get_apt_cache.py > %s/.linuxmint/mintMenu/apt.cache &" % home) os.system("/usr/lib/linuxmint/mintMenu/plugins/get_apt_cache.py > %s/.linuxmint/mintMenu/apt.cache &" % home)
def get_panel(self): def get_panel(self):
self.panel = "top"
self.panel_position = -1
panelsettings = Gio.Settings.new("org.mate.panel") panelsettings = Gio.Settings.new("org.mate.panel")
applet_list = panelsettings.get_strv("object-id-list") applet_list = panelsettings.get_strv("object-id-list")
for applet in applet_list: for applet in applet_list: