[gedit/wip/panels-as-stacks: 2/4] MenuStackSwitcher: do not show hidden children in the menu.
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/panels-as-stacks: 2/4] MenuStackSwitcher: do not show hidden children in the menu.
- Date: Mon, 20 Jan 2014 10:21:34 +0000 (UTC)
commit 63e8dfb74692a9a6028d58b20aa327d2b75ef3c8
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]