From 1c85b2de0aa9384af18c10971e599cf7efcb940f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 13 Oct 2017 18:08:44 -0400 Subject: MqTab: Change callback arg type and drop conditional --- (limited to 'src') diff --git a/src/tab.c b/src/tab.c index bb2e921..917e1e3 100644 --- a/src/tab.c +++ b/src/tab.c @@ -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); } -- cgit v0.9.1