diff options
author | Ted Gould <ted@gould.cx> | 2010-08-04 13:52:28 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-04 13:52:28 -0500 |
commit | 0d11bf650fcaa20dfbc5d53ea1c08334b2bf63a0 (patch) | |
tree | df77c50783e866489ae9a6a8aae5cd032168936c | |
parent | ff9b7b426a720d3d7489d007ae273baf6243cb47 (diff) | |
download | libayatana-appindicator-0d11bf650fcaa20dfbc5d53ea1c08334b2bf63a0.tar.gz libayatana-appindicator-0d11bf650fcaa20dfbc5d53ea1c08334b2bf63a0.tar.bz2 libayatana-appindicator-0d11bf650fcaa20dfbc5d53ea1c08334b2bf63a0.zip |
Start tracking the label and the label guide allong with the other application properties.
-rw-r--r-- | src/application-service-appstore.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 5694596..a05c725 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -81,6 +81,8 @@ struct _Application { gchar * aicon; gchar * menu; gchar * icon_path; + gchar * label; + gchar * guide; gboolean currently_free; }; @@ -264,6 +266,20 @@ get_all_properties_cb (DBusGProxy * proxy, GHashTable * properties, GError * err app->icon_path = g_strdup(""); } + gpointer label_data = g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_LABEL); + if (label_data != NULL) { + app->label = g_value_dup_string((GValue *)label_data); + } else { + app->label = g_strdup(""); + } + + gpointer guide_data = g_hash_table_lookup(properties, NOTIFICATION_ITEM_PROP_LABEL_GUIDE); + if (guide_data != NULL) { + app->guide = g_value_dup_string((GValue *)guide_data); + } else { + app->guide = g_strdup(""); + } + /* TODO: Calling approvers, but we're ignoring the results. So, eh. */ g_list_foreach(priv->approvers, check_with_old_approver, app); @@ -360,6 +376,12 @@ application_free (Application * app) if (app->icon_path != NULL) { g_free(app->icon_path); } + if (app->label != NULL) { + g_free(app->label); + } + if (app->guide != NULL) { + g_free(app->guide); + } g_free(app); return; @@ -626,6 +648,8 @@ application_service_appstore_application_add (ApplicationServiceAppstore * appst app->aicon = NULL; app->menu = NULL; app->icon_path = NULL; + app->label = NULL; + app->guide = NULL; app->currently_free = FALSE; /* Get the DBus proxy for the NotificationItem interface */ |