Commit e4b64ec2 authored by Graeme Gott's avatar Graeme Gott

Use standard checks for context menu.

parent 51fd9151
......@@ -248,12 +248,12 @@ gboolean Page::view_button_press_event(GtkWidget*, GdkEvent* event)
return false;
if (button_event->button == 3)
if (gdk_event_triggers_context_menu(event))
create_context_menu(path, event);
return true;
else if (button_event->button != 1)
else if (button_event->button != GDK_BUTTON_PRIMARY)
return false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment