[gtk+/wip/gmenu] bloatpad: add proper sections to the menus



commit d5ac373ddde880ca35f701d16ebfad52df26b98f
Author: Ryan Lortie <desrt desrt ca>
Date:   Sat Dec 3 18:52:35 2011 -0500

    bloatpad: add proper sections to the menus

 examples/bloatpad.c |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 8cd41c1..93b9b6c 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -191,16 +191,24 @@ bloat_pad_startup (GApplication *application)
   gtk_builder_add_from_string (builder,
                                "<interface>"
                                "  <menu id='app-menu'>"
-                               "    <item label='_About Bloatpad' action='app.about'/>"
-                               "    <item label='_Quit' action='app.quit'/>"
+                               "    <section>"
+                               "      <item label='_About Bloatpad' action='app.about'/>"
+                               "    </section>"
+                               "    <section>"
+                               "      <item label='_Quit' action='app.quit'/>"
+                               "    </section>"
                                "  </menu>"
                                "  <menu id='menubar'>"
                                "    <submenu label='_Edit'>"
-                               "      <item label='_Copy' action='win.copy'/>"
-                               "      <item label='_Paste' action='win.paste'/>"
+                               "      <section>"
+                               "        <item label='_Copy' action='win.copy'/>"
+                               "        <item label='_Paste' action='win.paste'/>"
+                               "      </section>"
                                "    </submenu>"
                                "    <submenu label='_View'>"
-                               "      <item label='_Fullscreen' action='win.fullscreen'/>"
+                               "      <section>"
+                               "        <item label='_Fullscreen' action='win.fullscreen'/>"
+                               "      </section>"
                                "    </submenu>"
                                "  </menu>"
                                "</interface>", -1, NULL);



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