]> Pileus Git - ~andy/gtk/commitdiff
Bloatpad: Add an accelerator
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Dec 2011 22:29:32 +0000 (17:29 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 19 Dec 2011 17:51:11 +0000 (12:51 -0500)
examples/bloatpad.c

index 93b9b6c736cd738004985b4b12975d273cc0895f..50e30b0d655e2a342e8ce35b16e74401de4941a0 100644 (file)
@@ -254,6 +254,8 @@ main (int argc, char **argv)
   int status;
 
   bloat_pad = bloat_pad_new ();
+  gtk_application_add_accelerator (GTK_APPLICATION (bloat_pad),
+                                   "F11", "win.fullscreen", NULL);
   status = g_application_run (G_APPLICATION (bloat_pad), argc, argv);
   g_object_unref (bloat_pad);