summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab.c9
1 files changed, 2 insertions, 7 deletions
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);
}