summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-02 18:02:40 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-02 18:02:40 (EDT)
commit15d4248835d912c6e31230307824a94279ad6104 (patch)
tree32d44c55aa6edae2d6e59e529169d6a936500276
parent608a85bf14be409af5e587b3e61782805a11fa47 (diff)
downloadmarquee-15d4248835d912c6e31230307824a94279ad6104.zip
marquee-15d4248835d912c6e31230307824a94279ad6104.tar.gz
marquee-15d4248835d912c6e31230307824a94279ad6104.tar.bz2
MqTabLabel: Don't bother hiding popover on close
-rw-r--r--src/tab-label.c10
1 files changed, 4 insertions, 6 deletions
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);
}