Fix popup menus
This commit is contained in:
parent
bf34d718cc
commit
ccf9573581
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user