diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-28 17:24:31 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-28 17:24:31 +0100 |
commit | 235a7edc5c2fc2435c837f8a3d427dd0755f966d (patch) | |
tree | 7b667300eaf862ac992502bc0f22280f1061415b /src | |
parent | ced173aa7ea78c76922e07c84743d5b7f76c265e (diff) | |
download | ayatana-indicator-messages-235a7edc5c2fc2435c837f8a3d427dd0755f966d.tar.gz ayatana-indicator-messages-235a7edc5c2fc2435c837f8a3d427dd0755f966d.tar.bz2 ayatana-indicator-messages-235a7edc5c2fc2435c837f8a3d427dd0755f966d.zip |
Use aa{sv} instead of a(ssgav) to communicate actions to the service
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 7c53e69..1f901ec 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -511,14 +511,14 @@ im_application_list_message_added (Application *app, const gchar *subtitle; const gchar *body; gint64 time; - GVariantIter *action_iter; + GVariant *actions; gboolean draws_attention; GSimpleAction *action; GIcon *app_icon; gchar *app_iconstr; - g_variant_get (message, "(&s&s&s&s&sxa(ssgav)b)", - &id, &iconstr, &title, &subtitle, &body, &time, &action_iter, &draws_attention); + g_variant_get (message, "(&s&s&s&s&sx@aa{sv}b)", + &id, &iconstr, &title, &subtitle, &body, &time, &actions, &draws_attention); app_icon = g_app_info_get_icon (G_APP_INFO (app->info)); app_iconstr = app_icon ? g_icon_to_string (app_icon) : NULL; @@ -531,7 +531,7 @@ im_application_list_message_added (Application *app, g_signal_emit (app->list, signals[MESSAGE_ADDED], 0, app->id, app_iconstr, id, iconstr, title, subtitle, body, time, draws_attention); - g_variant_iter_free (action_iter); + g_variant_unref (actions); g_free (app_iconstr); g_object_unref (action); } |