[gnome-builder] devhelp: show tabs when there are more than one split



commit 97a330360c7d11712b0f84f02a4479e3dcb30e0e
Author: Christian Hergert <christian hergert me>
Date:   Tue Sep 9 01:52:28 2014 -0700

    devhelp: show tabs when there are more than one split

 src/devhelp/gb-devhelp-workspace.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/devhelp/gb-devhelp-workspace.c b/src/devhelp/gb-devhelp-workspace.c
index 2f3f3c6..8661022 100644
--- a/src/devhelp/gb-devhelp-workspace.c
+++ b/src/devhelp/gb-devhelp-workspace.c
@@ -52,6 +52,9 @@ update_show_tabs (GbDevhelpWorkspace *workspace)
   show_tabs = (g_list_length (tabs) > 1);
   g_list_free (tabs);
 
+  if (!show_tabs && gb_multi_notebook_get_n_notebooks (priv->multi_notebook))
+    show_tabs = TRUE;
+
   gb_multi_notebook_set_show_tabs (priv->multi_notebook, show_tabs);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]