[gtk+/wip/gmenu] Bloatpad: Add an accelerator



commit 70d4be04d287806d91e0586cc8834359197ceca5
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 5 17:29:32 2011 -0500

    Bloatpad: Add an accelerator

 examples/bloatpad.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 93b9b6c..50e30b0 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]