diff options
author | Ted Gould <ted@canonical.com> | 2009-10-01 13:51:53 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-01 13:51:53 -0500 |
commit | d21cb526eb4938a32091b8fef02598494573967b (patch) | |
tree | 8e6257a130986668809283e90e6d1b5c337722c3 | |
parent | 8bd2f70a979d0e0a6bc2f433dc69fd78e85d299b (diff) | |
parent | 79f2db841bd7c24631c0c7d24ce2a6ddda46b53b (diff) | |
download | libdbusmenu-d21cb526eb4938a32091b8fef02598494573967b.tar.gz libdbusmenu-d21cb526eb4938a32091b8fef02598494573967b.tar.bz2 libdbusmenu-d21cb526eb4938a32091b8fef02598494573967b.zip |
get_position messages
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 84f356a..654ecca 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libdbusmenu (0.1.5-0ubuntu1~ppa2~bugfix6) UNRELEASED; urgency=low + + * get_position messages + + -- Ted Gould <ted@ubuntu.com> Thu, 01 Oct 2009 13:51:39 -0500 + libdbusmenu (0.1.5-0ubuntu1~ppa2~bugfix5) karmic; urgency=low * More messages from client 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); |