Fix focus grabbers

This commit is contained in:
Michael Webster 2013-03-06 18:57:06 -05:00
parent 4f7fde8700
commit 5b102017b6
2 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ class MainWindow( object ):
self.plugins["applications"].focusSearchEntry()
def grab( self ):
Gdk.pointer_grab( self.window.window, True, Gdk.EventMask.BUTTON_PRESS_MASK, self.window.window, Gdk.Cursor(Gdk.CursorType.ARROW), Gdk.CURRENT_TIME)
gdk.gdk_pointer_grab (hash(self.window.window), True, Gdk.EventMask.BUTTON_PRESS_MASK, None, None, 0)
Gdk.keyboard_grab( self.window.window, False, Gdk.CURRENT_TIME )
Gtk.grab_add(self.window)

View File

@ -1000,7 +1000,7 @@ class pluginclass( object ):
startupMenuItem.connect( "toggled", self.onAddToStartup, widget )
mTree.connect( 'deactivate', self.onMenuPopupDeactivate)
gtk.gtk_menu_popup(hash(mTree), None, hash(widget), None, 0, event.time)
gtk.gtk_menu_popup(hash(mTree), None, None, None, 0, 0)
#mTree.popup_for_device( None, None, None, event.button, event.time )
return True