Add destroy method to recent plugin

This commit is contained in:
Michael Webster 2013-05-21 13:15:39 -04:00
parent d1a6dc819f
commit f66f854c8e

View File

@ -53,7 +53,7 @@ class pluginclass:
self.FileList=[]
self.RecManagerInstance = Gtk.RecentManager.get_default()
self.RecManagerInstance.connect("changed", self.DoRecent)
self.recentManagerId = self.RecManagerInstance.connect("changed", self.DoRecent)
self.RegenPlugin()
self.builder.get_object( "RecentTabs" ).set_current_page(1)
@ -64,6 +64,16 @@ class pluginclass:
def wake (self) :
pass
def destroy( self ):
self.recentBox.destroy()
self.recentVBox.destroy()
self.builder.get_object( "RecentTabs" ).destroy()
self.builder.get_object("ClrBtn").destroy()
self.content_holder.destroy()
self.settings.notifyRemoveAll()
if self.recentManagerId:
self.RecManagerInstance.disconnect(self.recentManagerId)
def RegenPlugin( self, *args, **kargs ):
self.GetGSettingsEntries()