diff options
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 * |