diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-22 08:51:37 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-22 08:51:58 -0400 |
commit | c3a9a20839955a98266463c6fad4f0190feaccc2 (patch) | |
tree | b18fd7a785dea8f68039b66e9fb76207f8d8bd13 /examples | |
parent | 69cef3c9b46023aac32bd08efebd39951fbbbffd (diff) | |
download | gtk+-c3a9a20839955a98266463c6fad4f0190feaccc2.tar.gz |
examples: Don't use gtk_application_add_accelerator
It has been deprecated.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plugman.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/plugman.c b/examples/plugman.c index c074aa9393..3a4b7b3d0c 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -476,10 +476,11 @@ main (int argc, char **argv) { PlugMan *plug_man; int status; + const gchar *accels[] = { "F11", NULL }; plug_man = plug_man_new (); - gtk_application_add_accelerator (GTK_APPLICATION (plug_man), - "F11", "win.fullscreen", NULL); + gtk_application_set_accels_for_action (GTK_APPLICATION (plug_man), + "win.fullscreen", accels); status = g_application_run (G_APPLICATION (plug_man), argc, argv); g_object_unref (plug_man); |