Fix focus grabbers
This commit is contained in:
parent
4f7fde8700
commit
5b102017b6
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user