[gtk+] Fix menu xml syntax in tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix menu xml syntax in tests
- Date: Tue, 31 Jan 2012 03:14:08 +0000 (UTC)
commit f663d4c82e064a91b5eb7bbfaf702e0904998a01
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 30 21:19:17 2012 -0500
Fix menu xml syntax in tests
gtk/tests/builder.c | 54 ++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 43 insertions(+), 11 deletions(-)
---
diff --git a/gtk/tests/builder.c b/gtk/tests/builder.c
index 0a3b6f6..a5889fb 100644
--- a/gtk/tests/builder.c
+++ b/gtk/tests/builder.c
@@ -2583,21 +2583,53 @@ test_gmenu (void)
" </object>"
" <menu id='edit-menu'>"
" <section>"
- " <item label='Undo' action='undo'/>"
- " <item label='Redo' action='redo'/>"
+ " <item>"
+ " <attribute name='label'>Undo</attribute>"
+ " <attribute name='action'>undo</attribute>"
+ " </item>"
+ " <item>"
+ " <attribute name='label'>Redo</attribute>"
+ " <attribute name='action'>redo</attribute>"
+ " </item>"
" </section>"
" <section></section>"
- " <section label='Copy & Paste'>"
- " <item label='Cut' action='cut'/>"
- " <item label='Copy' action='copy'/>"
- " <item label='Paste' action='paste'/>"
+ " <section>"
+ " <attribute name='label'>Copy & Paste</attribute>"
+ " <item>"
+ " <attribute name='label'>Cut</attribute>"
+ " <attribute name='action'>cut</attribute>"
+ " </item>"
+ " <item>"
+ " <attribute name='label'>Copy</attribute>"
+ " <attribute name='action'>copy</attribute>"
+ " </item>"
+ " <item>"
+ " <attribute name='label'>Paste</attribute>"
+ " <attribute name='action'>paste</attribute>"
+ " </item>"
" </section>"
" <item><link name='section' id='blargh'>"
- " <item label='Bold' action='bold'/>"
- " <submenu label='Language'>"
- " <item label='Latin' action='lang' target='latin'/>"
- " <item label='Greek' action='lang' target='greek'/>"
- " <item label='Urdu' action='lang' target='urdu'/>"
+ " <item>"
+ " <attribute name='label'>Bold</attribute>"
+ " <attribute name='action'>bold</attribute>"
+ " </item>"
+ " <submenu>"
+ " <attribute name='label'>Language</attribute>"
+ " <item>"
+ " <attribute name='label'>Latin</attribute>"
+ " <attribute name='action'>lang</attribute>"
+ " <attribute name='target'>'latin'</attribute>"
+ " </item>"
+ " <item>"
+ " <attribute name='label'>Greek</attribute>"
+ " <attribute name='action'>lang</attribute>"
+ " <attribute name='target'>'greek'</attribute>"
+ " </item>"
+ " <item>"
+ " <attribute name='label'>Urdu</attribute>"
+ " <attribute name='action'>lang</attribute>"
+ " <attribute name='target'>'urdu'</attribute>"
+ " </item>"
" </submenu>"
" </link></item>"
" </menu>"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]