[gtk+] GMenuModel -> GtkMenu binding: show submenu items
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GMenuModel -> GtkMenu binding: show submenu items
- Date: Sat, 22 Jun 2013 13:36:11 +0000 (UTC)
commit 1107935d2b6d91767fc9c561c00beba5fa9aebbc
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Jun 22 09:34:21 2013 -0400
GMenuModel -> GtkMenu binding: show submenu items
In the non-submenu case we bind the 'visibility' attribute to the
tracker, which takes care of showing the item. In the submenu case, we
don't bind all of the properties, so we miss this one.
Deal with it by just show()ing the submenu item.
https://bugzilla.gnome.org/show_bug.cgi?id=702332
gtk/gtkmenushell.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c
index 07ec537..b82d33b 100644
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -2132,6 +2132,8 @@ gtk_menu_shell_tracker_insert_func (GtkMenuTrackerItem *item,
g_signal_connect (submenu, "show", G_CALLBACK (gtk_menu_shell_submenu_shown), item);
g_signal_connect (submenu, "hide", G_CALLBACK (gtk_menu_shell_submenu_hidden), item);
}
+
+ gtk_widget_show (widget);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]