[gtk+] bloatpad: add proper sections to the menus
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] bloatpad: add proper sections to the menus
- Date: Mon, 19 Dec 2011 18:01:22 +0000 (UTC)
commit 43bf430f2135c35595bc05244630470d469de55b
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]