[gtk+] plugman: Update GtkBuilder markup



commit bb16e54c7c5dc6f52e88b736a4f4f986018d0db0
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue May 8 13:48:48 2012 +0200

    plugman: Update GtkBuilder markup
    
    The markup for menus was changed in commit eed307713b8ef, update
    the plugman example to use the new format.

 examples/plugman.c |   37 +++++++++++++++++++++++++++++--------
 1 files changed, 29 insertions(+), 8 deletions(-)
---
diff --git a/examples/plugman.c b/examples/plugman.c
index 4bd4f06..6f0ed2a 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>"



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