summaryrefslogtreecommitdiff
path: root/examples/plugman.c
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2012-05-08 13:48:48 +0200
committerFlorian Müllner <fmuellner@gnome.org>2012-05-17 18:56:01 +0200
commitbb16e54c7c5dc6f52e88b736a4f4f986018d0db0 (patch)
tree10d1aeb14f063b3eab86c84ce5e33fc879fa28cc /examples/plugman.c
parente32da246a84492f02b4dac5a448bb46cb23d68b8 (diff)
downloadgtk+-bb16e54c7c5dc6f52e88b736a4f4f986018d0db0.tar.gz
plugman: Update GtkBuilder markup
The markup for menus was changed in commit eed307713b8ef, update the plugman example to use the new format.
Diffstat (limited to 'examples/plugman.c')
-rw-r--r--examples/plugman.c37
1 files changed, 29 insertions, 8 deletions
diff --git a/examples/plugman.c b/examples/plugman.c
index 4bd4f06748..6f0ed2ad20 100644
--- a/examples/plugman.c
+++ b/examples/plugman.c
@@ -391,27 +391,48 @@ plug_man_startup (GApplication *application)
"<interface>"
" <menu id='app-menu'>"
" <section>"
- " <item label='_About Plugman' action='app.about'/>"
+ " <item>"
+ " <attribute name='label'>_About Plugman</attribute>"
+ " <attribute name='action'>app.about</attribute>"
+ " </item>"
" </section>"
" <section>"
- " <item label='_Quit' action='app.quit' accel='<Primary>q'/>"
+ " <item>"
+ " <attribute name='label'>_Quit</attribute>"
+ " <attribute name='action'>app.quit</attribute>"
+ " <attribute name='accel'>&lt;Primary&gt;q</attribute>"
+ " </item>"
" </section>"
" </menu>"
" <menu id='menubar'>"
- " <submenu label='_Edit'>"
+ " <submenu>"
+ " <attribute name='label'>_Edit</attribute>"
" <section>"
- " <item label='_Copy' action='win.copy'/>"
- " <item label='_Paste' action='win.paste'/>"
+ " <item>"
+ " <attribute name='label'>_Copy</attribute>"
+ " <attribute name='action'>win.copy</attribute>"
+ " </item>"
+ " <item>"
+ " <attribute name='label'>_Paste</attribute>"
+ " <attribute name='action'>win.paste</attribute>"
+ " </item>"
" </section>"
" <item><link name='section' id='plugins'>"
" </link></item>"
" <section>"
- " <item label='Plugins' action='app.plugins'/>"
+ " <item>"
+ " <attribute name='label'>Plugins</attribute>"
+ " <attribute name='action'>app.plugins</attribute>"
+ " </item>"
" </section>"
" </submenu>"
- " <submenu label='_View'>"
+ " <submenu>"
+ " <attribute name='label'>_View</attribute>"
" <section>"
- " <item label='_Fullscreen' action='win.fullscreen'/>"
+ " <item>"
+ " <attribute name='label'>_Fullscreen</attribute>"
+ " <attribute name='action'>win.fullscreen</attribute>"
+ " </item>"
" </section>"
" </submenu>"
" </menu>"