[gtk+/wip/action-helper] gtk_menu_new_from_model: populate new menus with model contents
- From: Lars Uebernickel <larsu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/action-helper] gtk_menu_new_from_model: populate new menus with model contents
- Date: Wed, 20 Jun 2012 15:31:28 +0000 (UTC)
commit ee52f3961a81a96304bc2ce988a6753abbba7549
Author: Lars Uebernickel <lars uebernic de>
Date: Wed Jun 20 14:33:28 2012 +0200
gtk_menu_new_from_model: populate new menus with model contents
gtk/gtkmodelmenu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodelmenu.c b/gtk/gtkmodelmenu.c
index 19cb4f1..a08711e 100644
--- a/gtk/gtkmodelmenu.c
+++ b/gtk/gtkmodelmenu.c
@@ -290,6 +290,7 @@ gtk_menu_new_from_model (GMenuModel *model)
menu = gtk_menu_new ();
gtk_model_menu_bind (GTK_MENU_SHELL (menu), model, TRUE);
+ gtk_model_menu_populate (GTK_MENU_SHELL (menu), NULL);
return menu;
}
@@ -332,6 +333,7 @@ gtk_menu_bar_new_from_model (GMenuModel *model)
menubar = gtk_menu_bar_new ();
gtk_model_menu_bind (GTK_MENU_SHELL (menubar), model, FALSE);
+ gtk_model_menu_populate (GTK_MENU_SHELL (menubar), NULL);
return menubar;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]