[gedit] [osx] Hide side stack switcher if there is only a single panel
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] [osx] Hide side stack switcher if there is only a single panel
- Date: Sun, 7 Sep 2014 09:52:48 +0000 (UTC)
commit eed94f41b093579e1f6f194aa2af76be88b428b3
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Sep 7 11:52:19 2014 +0200
[osx] Hide side stack switcher if there is only a single panel
gedit/gedit-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 749ba2e..123a5f7 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2372,7 +2372,11 @@ on_side_panel_stack_children_number_changed (GtkStack *stack,
}
else
{
+ gtk_widget_hide (priv->side_stack_switcher);
+
+#ifndef OS_OSX
gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->side_headerbar), NULL);
+#endif
}
g_list_free (children);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]