Patch for bug #704240 (https://bugs.launchpad.net/linuxmint/+bug/704240)
This commit is contained in:
parent
01d95a69b3
commit
918c6fbed3
@ -983,7 +983,10 @@ class pluginclass( object ):
|
|||||||
startupMenuItem.set_active( False )
|
startupMenuItem.set_active( False )
|
||||||
startupMenuItem.connect( "toggled", self.onAddToStartup, widget )
|
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 )
|
mTree.get_widget( "applicationsMenu" ).popup( None, None, None, event.button, event.time )
|
||||||
|
|
||||||
|
def onMenuPopupDeactivate( self, widget):
|
||||||
self.mintMenuWin.grab()
|
self.mintMenuWin.grab()
|
||||||
|
|
||||||
def searchPopup( self, widget=None, event=None ):
|
def searchPopup( self, widget=None, event=None ):
|
||||||
@ -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) )
|
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:
|
if item["button"].appExec:
|
||||||
self.mintMenuWin.setTooltip( item["button"], item["button"].getTooltip() )
|
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( "focus-in-event", self.scrollItemIntoView )
|
||||||
item["button"].connect( "clicked", lambda w: self.mintMenuWin.hide() )
|
item["button"].connect( "clicked", lambda w: self.mintMenuWin.hide() )
|
||||||
if self.activeFilter[0] == 0:
|
if self.activeFilter[0] == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user