summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-12-21 12:55:04 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-12-21 12:55:04 (EST)
commit84ca766ea388de1d2ec2df7375b8a8948d348b4d (patch)
treed57f34ab02b04cd79f7bac56bb904d7ffa76a871
parenta46f086521fc3dfda369452668bd8585ec484f1e (diff)
downloadmarquee-84ca766ea388de1d2ec2df7375b8a8948d348b4d.zip
marquee-84ca766ea388de1d2ec2df7375b8a8948d348b4d.tar.gz
marquee-84ca766ea388de1d2ec2df7375b8a8948d348b4d.tar.bz2
MqTabLabel: Move button press callback definition
-rw-r--r--src/tab-label.c28
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)
{