From 918c6fbed3e4e0e60a2e82e0156814023ae422c1 Mon Sep 17 00:00:00 2001 From: Gwendal Le Bihan Date: Fri, 2 Sep 2011 20:16:12 +0200 Subject: [PATCH] Patch for bug #704240 (https://bugs.launchpad.net/linuxmint/+bug/704240) --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 4218cbb..a900347 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -983,9 +983,12 @@ class pluginclass( object ): startupMenuItem.set_active( False ) startupMenuItem.connect( "toggled", self.onAddToStartup, widget ) + mTree.get_widget( "applicationsMenu" ).connect( 'deactivate', self.onMenuPopupDeactivate) mTree.get_widget( "applicationsMenu" ).popup( None, None, None, event.button, event.time ) - self.mintMenuWin.grab() + def onMenuPopupDeactivate( self, widget): + self.mintMenuWin.grab() + def searchPopup( self, widget=None, event=None ): menu = gtk.Menu() @@ -1677,7 +1680,7 @@ class pluginclass( object ): item["button"] = MenuApplicationLauncher( item["entry"].get_desktop_file_path(), self.iconSize, item["category"], self.showapplicationcomments, highlight=(True and menu_has_changed) ) if item["button"].appExec: self.mintMenuWin.setTooltip( item["button"], item["button"].getTooltip() ) - item["button"].connect( "button-release-event", self.menuPopup ) + item["button"].connect( "button-press-event", self.menuPopup ) item["button"].connect( "focus-in-event", self.scrollItemIntoView ) item["button"].connect( "clicked", lambda w: self.mintMenuWin.hide() ) if self.activeFilter[0] == 0: