[gedit/wip/panels-as-stacks: 2/4] MenuStackSwitcher: do not show hidden children in the menu.



commit 78d4e302c30e75521849582aab47fd889b31c633
Author: Steve Frécinaux <code istique net>
Date:   Mon Jan 20 07:44:55 2014 +0100

    MenuStackSwitcher: do not show hidden children in the menu.

 gedit/gedit-menu-stack-switcher.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-menu-stack-switcher.c b/gedit/gedit-menu-stack-switcher.c
index e2d2ffb..01d3e3c 100644
--- a/gedit/gedit-menu-stack-switcher.c
+++ b/gedit/gedit-menu-stack-switcher.c
@@ -110,6 +110,9 @@ add_menu_entry (GtkWidget              *widget,
   gchar *title, *name;
   GMenuItem *item;
 
+  if (!gtk_widget_get_visible(widget))
+    return;
+
   gtk_container_child_get (GTK_CONTAINER (priv->stack), widget,
                            "title", &title,
                            "name", &name,


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