[gtk+] notebook: Fix setting show-tabs
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Fix setting show-tabs
- Date: Fri, 3 Nov 2017 10:20:18 +0000 (UTC)
commit 11b8f27b76aea3947d1a62839c157cc646608917
Author: Timm Bäder <mail baedert org>
Date: Fri Nov 3 11:22:00 2017 +0100
notebook: Fix setting show-tabs
show-tabs=FALS means the notebook is not supposed to show tabs,
regardless of whether it has a current page or not.
gtk/gtknotebook.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 870f985..65be844 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -6191,8 +6191,8 @@ gtk_notebook_set_show_tabs (GtkNotebook *notebook,
else
gtk_widget_hide (page->tab_label);
}
- gtk_widget_set_visible (priv->header_widget,
- gtk_notebook_has_current_page (notebook));
+
+ gtk_widget_hide (priv->header_widget);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]