]> Pileus Git - ~andy/gtk/commitdiff
Adapt to changes in GLib API
authorRyan Lortie <desrt@desrt.ca>
Thu, 1 Dec 2011 17:18:22 +0000 (12:18 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 19 Dec 2011 17:51:09 +0000 (12:51 -0500)
g_application_get_menu() -> get_app_menu().

examples/bloatpad.c
gtk/gtkapplicationwindow.c

index 315ec12a65db9c4b6f81794b074d0cdfd151e130..2c23ea0fa07bbfaff73b6eaaf8e1f560888e0e6d 100644 (file)
@@ -208,7 +208,7 @@ static void
 bloat_pad_init (BloatPad *app)
 {
   g_application_set_action_group (G_APPLICATION (app), get_actions ());
-  g_application_set_menu (G_APPLICATION (app), get_menu ());
+  g_application_set_app_menu (G_APPLICATION (app), get_menu ());
 }
 
 static void
index 58302279a6a531bf1b6d0539562be6f4bb04a4ee..1c473303c1fa52ebb7a565906ad6c90ded7926d3 100644 (file)
@@ -814,7 +814,7 @@ repopulate_menu (gpointer data)
   g_list_free (children);
 
   /* repopulate */
-  model = g_application_get_menu (G_APPLICATION (d->application));
+  model = g_application_get_app_menu (G_APPLICATION (d->application));
   populate_menu_from_model (d->menu, model, G_ACTION_GROUP (d->application));
 
   d->update_idle = 0;
@@ -896,7 +896,7 @@ gtk_application_window_get_app_menu (GtkApplicationWindow *window)
 
   application = gtk_window_get_application (GTK_WINDOW (window));
 
-  model = g_application_get_menu (G_APPLICATION (application));
+  model = g_application_get_app_menu (G_APPLICATION (application));
 
   if (!model)
     return NULL;