diff options
author | Ted Gould <ted@canonical.com> | 2009-10-01 13:51:07 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-01 13:51:07 -0500 |
commit | 79f2db841bd7c24631c0c7d24ce2a6ddda46b53b (patch) | |
tree | b6c3ab8ac9bfb360ea307d95c1514b011ed5b277 | |
parent | b460b4f1596852355cfbf8828160f8e221547c3a (diff) | |
download | libdbusmenu-79f2db841bd7c24631c0c7d24ce2a6ddda46b53b.tar.gz libdbusmenu-79f2db841bd7c24631c0c7d24ce2a6ddda46b53b.tar.bz2 libdbusmenu-79f2db841bd7c24631c0c7d24ce2a6ddda46b53b.zip |
More getting messages in get_position
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 5088efb..47b59a2 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -412,6 +412,11 @@ dbusmenu_menuitem_take_children (DbusmenuMenuitem * mi) guint dbusmenu_menuitem_get_position (DbusmenuMenuitem * mi, DbusmenuMenuitem * parent) { + #ifdef MASSIVEDEBUG + if (!DBUSMENU_IS_MENUITEM(mi)) g_warning("Getting position of %d (%s), it's at: %d (mi fail)", ID(mi), LABEL(mi), 0); + if (!DBUSMENU_IS_MENUITEM(parent)) g_warning("Getting position of %d (%s), it's at: %d (parent fail)", ID(mi), LABEL(mi), 0); + #endif + /* TODO: I'm not too happy returning zeros here. But that's all I've got */ g_return_val_if_fail(DBUSMENU_IS_MENUITEM(mi), 0); g_return_val_if_fail(DBUSMENU_IS_MENUITEM(parent), 0); |