diff options
author | Ted Gould <ted@canonical.com> | 2009-10-01 12:24:17 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-01 12:24:17 -0500 |
commit | 814c6b73f011a0bc6dbd6ed444869caedd1f0d6c (patch) | |
tree | 1beffdbbb07b83e8f629fca25a3b7e5e685a8a55 | |
parent | 68ffd551dc9155e61a1a9e1927c1b43214448a09 (diff) | |
download | libdbusmenu-814c6b73f011a0bc6dbd6ed444869caedd1f0d6c.tar.gz libdbusmenu-814c6b73f011a0bc6dbd6ed444869caedd1f0d6c.tar.bz2 libdbusmenu-814c6b73f011a0bc6dbd6ed444869caedd1f0d6c.zip |
Truncating property values if they're too long.
-rw-r--r-- | libdbusmenu-glib/menuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/menuitem.c b/libdbusmenu-glib/menuitem.c index 4d68aff..4346743 100644 --- a/libdbusmenu-glib/menuitem.c +++ b/libdbusmenu-glib/menuitem.c @@ -677,7 +677,7 @@ dbusmenu_menuitem_property_set (DbusmenuMenuitem * mi, const gchar * property, c g_hash_table_insert(priv->properties, lprop, lval); #ifdef MASSIVEDEBUGGING - g_debug("Menuitem %d signalling property '%s' changed to '%s'", dbusmenu_menuitem_get_id(DBUSMENU_MENUITEM(mi)), property, value); + g_debug("Menuitem %d signalling property '%s' changed to '%s'", dbusmenu_menuitem_get_id(DBUSMENU_MENUITEM(mi)), property, g_utf8_strlen(value, 50) < 25 ? value : "<too long>"); #endif g_signal_emit(G_OBJECT(mi), signals[PROPERTY_CHANGED], 0, property, value, TRUE); |