From 01d95a69b319a88b1f38c8b7416d64dbd3cd4710 Mon Sep 17 00:00:00 2001 From: Gwendal Le Bihan Date: Mon, 29 Aug 2011 17:55:26 +0200 Subject: [PATCH] Corrected bug preventing "Hover" option changes to be taken into account immediately --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 3668634..4218cbb 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -432,7 +432,7 @@ class pluginclass( object ): startId = child.connect( "enter", self.StartFilter, child.filter ) stopId = child.connect( "leave", self.StopFilter ) child.mouseOverHandlerIds = ( startId, stopId ) - elif self.categories_mouse_over and child.mouseOverHandlerIds: + elif not self.categories_mouse_over and child.mouseOverHandlerIds: child.disconnect( child.mouseOverHandlerIds[0] ) child.disconnect( child.mouseOverHandlerIds[1] ) child.mouseOverHandlerIds = None @@ -1617,6 +1617,8 @@ class pluginclass( object ): startId = item["button"].connect( "enter", self.StartFilter, item["filter"] ) stopId = item["button"].connect( "leave", self.StopFilter ) item["button"].mouseOverHandlerIds = ( startId, stopId ) + else: + item["button"].mouseOverHandlerIds = None item["button"].connect( "clicked", self.Filter, item["filter"] ) item["button"].connect( "focus-in-event", self.categoryBtnFocus, item["filter"] )