diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 8db50e9..5384025 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -916,6 +916,7 @@ class pluginclass( object ): mTree.show_all() self.mintMenuWin.stopHiding() + mTree.attach_to_widget(widget, None) mTree.popup(None, None, None, None, event.button, event.time) else: mTree = Gtk.Menu() @@ -935,6 +936,7 @@ class pluginclass( object ): insertSpaceMenuItem.connect( "activate", self.onFavoritesInsertSpace, widget, insertBefore ) insertSeparatorMenuItem.connect( "activate", self.onFavoritesInsertSeparator, widget, insertBefore ) self.mintMenuWin.stopHiding() + mTree.attach_to_widget(widget, None) mTree.popup(None, None, None, None, event.button, event.time) def menuPopup( self, widget, event ): @@ -997,6 +999,7 @@ class pluginclass( object ): startupMenuItem.connect( "toggled", self.onAddToStartup, widget ) self.mintMenuWin.stopHiding() + mTree.attach_to_widget(widget, None) mTree.popup(None, None, None, None, event.button, event.time) @@ -1078,9 +1081,9 @@ class pluginclass( object ): menu.show_all() self.mintMenuWin.stopHiding() + menu.attach_to_widget(self.searchButton, None) menu.popup(None, None, None, None, event.button, event.time) - #menu.attach_to_widget(self.searchButton, None) #menu.reposition() #menu.reposition() #self.mintMenuWin.grab()