diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-12 17:47:26 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-12 17:47:26 (EDT) |
commit | 700d58fd8e35eeeec5322e0224b61ca43d8f09c4 (patch) | |
tree | 9feb3cfc40e2a7734d57c6f9820feae107d4ea62 | |
parent | 848f166b57323e030e454ce13b1394dc422d2b55 (diff) | |
download | marquee-700d58fd8e35eeeec5322e0224b61ca43d8f09c4.zip marquee-700d58fd8e35eeeec5322e0224b61ca43d8f09c4.tar.gz marquee-700d58fd8e35eeeec5322e0224b61ca43d8f09c4.tar.bz2 |
MqTabChrome: Change callback arg type and drop conditional
-rw-r--r-- | src/tab-chrome.c | 10 |
1 files changed, 2 insertions, 8 deletions
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)); |