shell: Drop deprecated API usage

https://bugzilla.gnome.org/show_bug.cgi?id=740986
This commit is contained in:
Rui Matos 2014-11-29 19:22:52 +01:00
parent f0e8f9d161
commit 52c27cd672
2 changed files with 4 additions and 3 deletions

View file

@ -289,6 +289,7 @@ cc_application_startup (GApplication *application)
GMenu *menu;
GMenu *section;
GSimpleAction *action;
const gchar *help_accels[] = { "F1", NULL };
G_APPLICATION_CLASS (cc_application_parent_class)->startup (application);
@ -333,8 +334,8 @@ cc_application_startup (GApplication *application)
gtk_application_set_app_menu (GTK_APPLICATION (application),
G_MENU_MODEL (menu));
gtk_application_add_accelerator (GTK_APPLICATION (application),
"F1", "app.help", NULL);
gtk_application_set_accels_for_action (GTK_APPLICATION (application),
"app.help", help_accels);
self->priv->window = cc_window_new (GTK_APPLICATION (application));
}