diff options
author | Ted Gould <ted@canonical.com> | 2009-08-26 15:42:27 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-08-26 15:42:27 -0500 |
commit | 9afd4dc68692b573582c3bd57489f9b5a541eb3a (patch) | |
tree | b25a1d7c25e2250cf69cd1c53153dd3a5ce9c877 | |
parent | a5506477c08af6ecd1f15d898b737bdf69464c0d (diff) | |
download | libdbusmenu-9afd4dc68692b573582c3bd57489f9b5a541eb3a.tar.gz libdbusmenu-9afd4dc68692b573582c3bd57489f9b5a541eb3a.tar.bz2 libdbusmenu-9afd4dc68692b573582c3bd57489f9b5a541eb3a.zip |
Adding in a default type handler, incase it's configured, but not set by clients.
-rw-r--r-- | libdbusmenu-glib/client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 0a80c6e..ffde8e3 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -550,6 +550,8 @@ menuitem_get_properties_new_cb (DBusGProxy * proxy, GHashTable * properties, GEr type = dbusmenu_menuitem_property_get(propdata->item, "type"); if (type != NULL) { newfunc = g_hash_table_lookup(priv->type_handlers, type); + } else { + newfunc = g_hash_table_lookup(priv->type_handlers, DBUSMENU_CLIENT_TYPES_DEFAULT); } if (newfunc != NULL) { |