aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-05-04 14:59:10 +0100
committerTed Gould <ted@canonical.com>2009-05-04 14:59:10 +0100
commitbd8dca841ba20362b9d50693b01f4e78bc7cf721 (patch)
treee79ccba8bb899d13eaaf1bd3207c1fe3860a0c1b
parentdcca29ed8812682d7fb0bbbd224c4c5eff16c9a6 (diff)
downloadlibdbusmenu-bd8dca841ba20362b9d50693b01f4e78bc7cf721.tar.gz
libdbusmenu-bd8dca841ba20362b9d50693b01f4e78bc7cf721.tar.bz2
libdbusmenu-bd8dca841ba20362b9d50693b01f4e78bc7cf721.zip
Debug comments
-rw-r--r--libdbusmenu-glib/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdbusmenu-glib/server.c b/libdbusmenu-glib/server.c
index 13eb240..7d080f5 100644
--- a/libdbusmenu-glib/server.c
+++ b/libdbusmenu-glib/server.c
@@ -156,6 +156,8 @@ set_property (GObject * obj, guint id, const GValue * value, GParamSpec * pspec)
priv->root = DBUSMENU_MENUITEM(g_value_get_object(value));
if (priv->root != NULL) {
g_object_ref(G_OBJECT(priv->root));
+ } else {
+ g_debug("Setting root node to NULL");
}
break;
case PROP_LAYOUT:
@@ -195,6 +197,7 @@ get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec)
case PROP_LAYOUT: {
GPtrArray * xmlarray = g_ptr_array_new();
if (priv->root == NULL) {
+ g_debug("Getting layout without root node!");
g_ptr_array_add(xmlarray, g_strdup("<menu />"));
} else {
dbusmenu_menuitem_buildxml(priv->root, xmlarray);
@@ -204,7 +207,7 @@ get_property (GObject * obj, guint id, GValue * value, GParamSpec * pspec)
/* build string */
gchar * finalstring = g_strjoinv("", (gchar **)xmlarray->pdata);
g_value_take_string(value, finalstring);
- /* g_debug("Final string: %s", finalstring); */
+ g_debug("Final string: %s", finalstring);
g_ptr_array_foreach(xmlarray, xmlarray_foreach_free, NULL);
g_ptr_array_free(xmlarray, TRUE);