From 15d4248835d912c6e31230307824a94279ad6104 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2018 18:02:40 -0400 Subject: MqTabLabel: Don't bother hiding popover on close --- diff --git a/src/tab-label.c b/src/tab-label.c index 8ada3dd..b9fcbbd 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -70,12 +70,10 @@ reload_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label) static void close_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label) { - if (tab_label->popover) { - /* This callback handles both the close button on the tab label - * and the one on the popover. Only hide the popover if it's - * shown. */ - gtk_widget_hide(tab_label->popover); - } + /* This callback handles both the close button on the tab label and the + * one on the popover. Closing the tab automatically hides the popover, + * so don't bother conditionally hiding it if it's shown. */ + mq_tab_page_close(tab_label->tab_page); } -- cgit v0.9.1