forked from AuroraMiddleware/gtk
examples: Don't use gtk_application_add_accelerator
It has been deprecated.
This commit is contained in:
parent
69cef3c9b4
commit
c3a9a20839
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user