]> Pileus Git - ~andy/gtk/commitdiff
Fix menu xml syntax in tests
authorMatthias Clasen <mclasen@redhat.com>
Tue, 31 Jan 2012 02:19:17 +0000 (21:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 31 Jan 2012 03:14:05 +0000 (22:14 -0500)
gtk/tests/builder.c

index 0a3b6f6afca77ac8e8059e963a240dc91fc289f8..a5889fbfdaca95831b3d90bd2e1e7d5309f5c086 100644 (file)
@@ -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 &amp; Paste'>"
-    "      <item label='Cut' action='cut'/>"
-    "      <item label='Copy' action='copy'/>"
-    "      <item label='Paste' action='paste'/>"
+    "    <section>"
+    "      <attribute name='label'>Copy &amp; 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>"