disconnect the keyPress handler when destroying the plugin
This commit is contained in:
parent
856addf5b8
commit
805570985a
@ -215,7 +215,7 @@ class pluginclass( object ):
|
|||||||
self.filterTimer = None
|
self.filterTimer = None
|
||||||
self.menuChangedTimer = None
|
self.menuChangedTimer = None
|
||||||
# Hookup for text input
|
# Hookup for text input
|
||||||
self.mintMenuWin.window.connect( "key-press-event", self.keyPress )
|
self.keyPress_handler = self.mintMenuWin.window.connect( "key-press-event", self.keyPress )
|
||||||
|
|
||||||
self.favoritesBox.connect( "drag-data-received", self.ReceiveCallback )
|
self.favoritesBox.connect( "drag-data-received", self.ReceiveCallback )
|
||||||
|
|
||||||
@ -324,6 +324,8 @@ class pluginclass( object ):
|
|||||||
self.categoriesBox.destroy()
|
self.categoriesBox.destroy()
|
||||||
self.favoritesBox.destroy()
|
self.favoritesBox.destroy()
|
||||||
|
|
||||||
|
self.mintMenuWin.window.disconnect(self.keyPress_handler)
|
||||||
|
|
||||||
self.settings.notifyRemoveAll()
|
self.settings.notifyRemoveAll()
|
||||||
|
|
||||||
def changePluginSize( self, settings, key, args ):
|
def changePluginSize( self, settings, key, args ):
|
||||||
|
Loading…
Reference in New Issue
Block a user