diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -330,15 +330,10 @@ create_tab_popover(GtkWidget *widget, MqTab *tab) #undef CLICKED_CB static gboolean -tab_label_button_press_cb(GtkWidget *widget, GdkEvent *event, MqTab *tab) +tab_label_button_press_cb(GtkWidget *widget, GdkEventButton *event, MqTab *tab) { - /* Make sure this is a mouse button press event. */ - if (event->type != GDK_BUTTON_PRESS) { - return FALSE; - } - /* Create a popover menu on right click. */ - if (event->button.button == 3) { + if (event->button == 3) { create_tab_popover(widget, tab); } |