diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 16:49:42 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 16:49:42 (EDT) |
commit | f3c03a8c0bf3f1ff0deb930c402c581bd8e7f906 (patch) | |
tree | 4f49e1874638d06e6665fbf576da6dc8a5b7988b /src | |
parent | b2a0a099cd87f55d75beba763d801b10add0aba3 (diff) | |
download | marquee-f3c03a8c0bf3f1ff0deb930c402c581bd8e7f906.zip marquee-f3c03a8c0bf3f1ff0deb930c402c581bd8e7f906.tar.gz marquee-f3c03a8c0bf3f1ff0deb930c402c581bd8e7f906.tar.bz2 |
MqTab: Save popover in struct
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.c | 7 | ||||
-rw-r--r-- | src/tab.h | 1 |
2 files changed, 4 insertions, 4 deletions
@@ -78,7 +78,6 @@ tab_label_button_press_cb(GtkWidget *widget, GdkEvent *event, MqTab *tab) GtkWidget *tab_list; GtkWidget *tab_list_scrolled_window; GtkWidget *box; - GtkWidget *popover; /* TODO: Add to MqWindow */ /* Make sure this is a right mouse button press event. */ if (event->type != GDK_BUTTON_PRESS || event->button.button != 3) { @@ -131,11 +130,11 @@ tab_label_button_press_cb(GtkWidget *widget, GdkEvent *event, MqTab *tab) TRUE, FALSE, 0); /* Set up the popover. */ - popover = gtk_popover_new(widget); - gtk_container_add(GTK_CONTAINER(popover), box); + tab->popover = gtk_popover_new(widget); + gtk_container_add(GTK_CONTAINER(tab->popover), box); /* NB: gtk_popover_popup() is new in GTK+ 3.22. */ - gtk_widget_show_all(popover); + gtk_widget_show_all(tab->popover); gtk_widget_hide(tab_list_scrolled_window); return FALSE; @@ -40,6 +40,7 @@ typedef struct { const gchar *title; guint tab_position; WebKitWebView *web_view; + GtkWidget *popover; } MqTab; MqTab * |