Commit c3a9a208 authored by Matthias Clasen's avatar Matthias Clasen

examples: Don't use gtk_application_add_accelerator

It has been deprecated.
parent 69cef3c9
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment