diff options
-rw-r--r-- | src/tab-label.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tab-label.c b/src/tab-label.c index 4ed9aa7..134fc8a 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -149,20 +149,6 @@ create_tab_popover(GtkWidget *widget, MqTabLabel *tab_label) #undef NEW_BUTTON #undef CLICKED_CB -static gboolean -button_press_cb(GtkWidget *widget, GdkEventButton *event, - MqTabLabel *tab_label) -{ - /* Create a popover menu on right click. */ - if (event->button == 2) { - mq_tab_page_close(tab_label->tab_page); - } else if (event->button == 3) { - create_tab_popover(widget, tab_label); - } - - return FALSE; -} - static void set_image(MqTabLabel *tab_label, GdkPixbuf *favicon) { @@ -241,6 +227,20 @@ set_web_view(MqTabLabel *tab_label, MqWebView *web_view) G_CALLBACK(title_cb), tab_label); } +static gboolean +button_press_cb(GtkWidget *widget, GdkEventButton *event, + MqTabLabel *tab_label) +{ + /* Create a popover menu on right click. */ + if (event->button == 2) { + mq_tab_page_close(tab_label->tab_page); + } else if (event->button == 3) { + create_tab_popover(widget, tab_label); + } + + return FALSE; +} + static void finalize(GObject *object) { |