When right clicking to open a context menu, pass the event on (which selects the row)

This commit is contained in:
René Stadler 2007-12-11 10:44:20 +02:00 committed by Stefan Sauer
parent ca40c5e58a
commit e3d2cfb035

View file

@ -36,8 +36,6 @@ def widget_add_popup_menu (widget, menu, button = 3):
if event.button == button: if event.button == button:
menu.popup (None, None, None, event.button, event.get_time ()) menu.popup (None, None, None, event.button, event.get_time ())
return True
else:
return False return False
widget.connect ("button-press-event", popup_callback) widget.connect ("button-press-event", popup_callback)