← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~ted/dbusmenu/default-xml-id into lp:dbusmenu

 

Ted Gould has proposed merging lp:~ted/dbusmenu/default-xml-id into lp:dbusmenu.

    Requested reviews:
    DBus Menu Team (dbusmenu-team)


This patch changes the default XML file sent with the layout to have an
ID on it.  It really always should have, and since the root item has a
fixed ID, there is a good one for us to give it too :)

-- 
https://code.launchpad.net/~ted/dbusmenu/default-xml-id/+merge/19202
Your team ayatana-commits is subscribed to branch lp:dbusmenu.
=== modified file 'libdbusmenu-glib/server.c'
--- libdbusmenu-glib/server.c	2010-02-09 16:52:21 +0000
+++ libdbusmenu-glib/server.c	2010-02-12 21:10:27 +0000
@@ -378,7 +378,7 @@
 	if (parent == 0) {
 		if (priv->root == NULL) {
 			/* g_debug("Getting layout without root node!"); */
-			g_ptr_array_add(xmlarray, g_strdup("<menu/>"));
+			g_ptr_array_add(xmlarray, g_strdup("<menu id=\"0\"/>"));
 		} else {
 			dbusmenu_menuitem_buildxml(priv->root, xmlarray);
 		}


Follow ups