From 700d58fd8e35eeeec5322e0224b61ca43d8f09c4 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 12 Oct 2017 17:47:26 -0400 Subject: MqTabChrome: Change callback arg type and drop conditional --- (limited to 'src/tab-chrome.c') diff --git a/src/tab-chrome.c b/src/tab-chrome.c index 6b3e2ad..df29807 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -120,8 +120,8 @@ back_forward_toggle_button_toggled_cb(GtkToggleButton *toggle_button, } static gboolean -back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event, - MqTabChrome *chrome) +back_forward_box_button_press_cb(GtkWidget *widget, + GdkEventButton G_GNUC_UNUSED *event, MqTabChrome *chrome) { WebKitBackForwardList *back_forward_list; GtkWidget *list_box; @@ -137,12 +137,6 @@ back_forward_box_button_press_cb(GtkWidget *widget, GdkEvent *event, GtkWidget *toggle_button; GtkWidget *box; - /* Make sure this is a mouse button press event. Either the middle or - * right button is OK. */ - if (event->type != GDK_BUTTON_PRESS) { - return FALSE; - } - /* Get the back/forward list for the Web view. */ back_forward_list = webkit_web_view_get_back_forward_list( WEBKIT_WEB_VIEW(chrome->web_view)); -- cgit v0.9.1