mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Adapt to changes in GLib API
g_application_get_menu() -> get_app_menu().
This commit is contained in:
parent
33aaf26dd5
commit
b42308f8e3
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user