diff options
author | Ryan Lortie <desrt@desrt.ca> | 2011-12-19 12:33:21 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-12-19 12:51:12 -0500 |
commit | 8578fefaa5c1dee41d0b3743065edf12925fff66 (patch) | |
tree | 0c6c45a4546998212b6464afb62a6d6d8860aad8 /examples | |
parent | 4e5e47931d0474c03b7e6c8450de783a2ff120b4 (diff) | |
download | gtk+-8578fefaa5c1dee41d0b3743065edf12925fff66.tar.gz |
GtkApplication: add menu API
We add the app-menu and menubar public APIs to GtkApplication while
leaving the implementation in GApplication.
The actual implementation will be moved soon.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bloatpad.c | 4 | ||||
-rw-r--r-- | examples/plugman.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/bloatpad.c b/examples/bloatpad.c index ddd87caf8e..1f2a913c74 100644 --- a/examples/bloatpad.c +++ b/examples/bloatpad.c @@ -223,8 +223,8 @@ bloat_pad_startup (GApplication *application) " </submenu>" " </menu>" "</interface>", -1, NULL); - g_application_set_app_menu (application, G_MENU_MODEL (gtk_builder_get_object (builder, "app-menu"))); - g_application_set_menubar (application, G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"))); + gtk_application_set_app_menu (GTK_APPLICATION (application), G_MENU_MODEL (gtk_builder_get_object (builder, "app-menu"))); + gtk_application_set_menubar (GTK_APPLICATION (application), G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"))); g_object_unref (builder); } diff --git a/examples/plugman.c b/examples/plugman.c index ee49a172ef..23c034fac0 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -415,8 +415,8 @@ plug_man_startup (GApplication *application) " </submenu>" " </menu>" "</interface>", -1, NULL); - g_application_set_app_menu (application, G_MENU_MODEL (gtk_builder_get_object (builder, "app-menu"))); - g_application_set_menubar (application, G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"))); + gtk_application_set_app_menu (GTK_APPLICATION (application), G_MENU_MODEL (gtk_builder_get_object (builder, "app-menu"))); + gtk_application_set_menubar (GTK_APPLICATION (application), G_MENU_MODEL (gtk_builder_get_object (builder, "menubar"))); g_object_set_data_full (G_OBJECT (application), "plugin-menu", gtk_builder_get_object (builder, "plugins"), g_object_unref); g_object_unref (builder); } |