diff options
author | Ted Gould <ted@gould.cx> | 2010-06-22 14:49:32 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-22 14:49:32 -0500 |
commit | 30c73018d2ba93ea84b7c89b02d9be5e6fb04709 (patch) | |
tree | a0037e2d8880f52ed5333dea2c8e2f144b2315d7 /libdbusmenu-gtk | |
parent | 8d57fff00109f049fc4f5341bc5c9ae09390d163 (diff) | |
parent | 5c0f9d84925fc1221f20b8356810c015dbad962c (diff) | |
download | libdbusmenu-30c73018d2ba93ea84b7c89b02d9be5e6fb04709.tar.gz libdbusmenu-30c73018d2ba93ea84b7c89b02d9be5e6fb04709.tar.bz2 libdbusmenu-30c73018d2ba93ea84b7c89b02d9be5e6fb04709.zip |
* Upstream Merge
* Useful warning messages
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/menuitem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/menuitem.c b/libdbusmenu-gtk/menuitem.c index 0eb0758..a7aa9d2 100644 --- a/libdbusmenu-gtk/menuitem.c +++ b/libdbusmenu-gtk/menuitem.c @@ -296,6 +296,7 @@ dbusmenu_menuitem_property_get_shortcut (DbusmenuMenuitem * menuitem, guint * ke return; } if (!G_VALUE_HOLDS(wrapper, G_TYPE_VALUE_ARRAY)) { + g_warning("Unexpected shortcut structure. Wrapper is: %s", G_VALUE_TYPE_NAME(wrapper)); return; } @@ -310,6 +311,7 @@ dbusmenu_menuitem_property_get_shortcut (DbusmenuMenuitem * menuitem, guint * ke GValue * ventryarray = g_value_array_get_nth(wrapperarray, 0); if (!G_VALUE_HOLDS(ventryarray, G_TYPE_VALUE_ARRAY)) { + g_warning("Unexpected shortcut structure. Value array is: %s", G_VALUE_TYPE_NAME(ventryarray)); return; } |