menu: port menu.popup calls
Add 1 extra arg.
This commit is contained in:
parent
66a6d948a6
commit
379e3970c6
@ -40,7 +40,7 @@ def widget_add_popup_menu (widget, menu, button = 3):
|
|||||||
def popup_callback (widget, event):
|
def popup_callback (widget, event):
|
||||||
|
|
||||||
if event.button == button:
|
if event.button == button:
|
||||||
menu.popup (None, None, None, event.button, event.get_time ())
|
menu.popup (None, None, None, None, event.button, event.get_time ())
|
||||||
return False
|
return False
|
||||||
|
|
||||||
widget.connect ("button-press-event", popup_callback)
|
widget.connect ("button-press-event", popup_callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user