diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-13 18:08:44 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-13 18:08:44 (EDT) |
commit | 1c85b2de0aa9384af18c10971e599cf7efcb940f (patch) | |
tree | b2861a4742ef516eac46bc648e16d882595c38be /src | |
parent | 6c54e00ee65a4b89bfd1b0a9f79d7fb0313774c6 (diff) | |
download | marquee-1c85b2de0aa9384af18c10971e599cf7efcb940f.zip marquee-1c85b2de0aa9384af18c10971e599cf7efcb940f.tar.gz marquee-1c85b2de0aa9384af18c10971e599cf7efcb940f.tar.bz2 |
MqTab: Change callback arg type and drop conditional
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); } |