[gtk+] Add accelerators to bloatpad.



commit 4846f3619a2af4ffc0b8cb4e02def162b7a3d531
Author: William Hua <william attente ca>
Date:   Sun Dec 11 22:17:51 2011 -0500

    Add accelerators to bloatpad.

 examples/bloatpad.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 62eb0d0..ddd87ca 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -200,7 +200,7 @@ bloat_pad_startup (GApplication *application)
                                "<interface>"
                                "  <menu id='app-menu'>"
                                "    <section>"
-                               "      <item label='_New Window' action='app.new'/>"
+                               "      <item label='_New Window' action='app.new' accel='<Primary>n'/>"
                                "    </section>"
                                "    <section>"
                                "      <item label='_About Bloatpad' action='app.about'/>"
@@ -212,8 +212,8 @@ bloat_pad_startup (GApplication *application)
                                "  <menu id='menubar'>"
                                "    <submenu label='_Edit'>"
                                "      <section>"
-                               "        <item label='_Copy' action='win.copy'/>"
-                               "        <item label='_Paste' action='win.paste'/>"
+                               "        <item label='_Copy' action='win.copy' accel='<Primary>c'/>"
+                               "        <item label='_Paste' action='win.paste' accel='<Primary>v'/>"
                                "      </section>"
                                "    </submenu>"
                                "    <submenu label='_View'>"



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