summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-13 18:08:44 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-13 18:08:44 (EDT)
commit1c85b2de0aa9384af18c10971e599cf7efcb940f (patch)
treeb2861a4742ef516eac46bc648e16d882595c38be /src
parent6c54e00ee65a4b89bfd1b0a9f79d7fb0313774c6 (diff)
downloadmarquee-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.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);
}