diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2010-02-11 14:44:24 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2010-02-11 14:44:24 -0500 |
commit | 4102c4d56e73cab5b733efb9a5a28a4eaed8b81d (patch) | |
tree | c09cebf6b4b84b04fe7a0d31083296258a83f977 /src/application-service-appstore.c | |
parent | c9d339ff50253e87e51045acf896a9663f582144 (diff) | |
parent | f7b909ce3b94c2afb8e8b8a31b63f579c8bcb92e (diff) | |
download | libayatana-appindicator-4102c4d56e73cab5b733efb9a5a28a4eaed8b81d.tar.gz libayatana-appindicator-4102c4d56e73cab5b733efb9a5a28a4eaed8b81d.tar.bz2 libayatana-appindicator-4102c4d56e73cab5b733efb9a5a28a4eaed8b81d.zip |
releasing version 0.0.13-0ubuntu10.0.13-0ubuntu1
Diffstat (limited to 'src/application-service-appstore.c')
-rw-r--r-- | src/application-service-appstore.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index c784495..ec6da50 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -222,7 +222,16 @@ get_all_properties_cb (DBusGProxy * proxy, GHashTable * properties, GError * err app_lru_file_touch(priv->lrufile, app->id, app->category); app->icon = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_ICON_NAME)); - app->menu = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_MENU)); + + GValue * menuval = (GValue *)g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_MENU); + if (G_VALUE_TYPE(menuval) == G_TYPE_STRING) { + /* This is here to support an older version where we + were using strings instea of object paths. */ + app->menu = g_value_dup_string(menuval); + } else { + app->menu = g_strdup((gchar *)g_value_get_boxed(menuval)); + } + if (g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_AICON_NAME) != NULL) { app->aicon = g_value_dup_string(g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_AICON_NAME)); } |