diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-27 15:14:26 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-27 15:14:26 +0100 |
commit | e8e99703ef0c565f07a9d1eba03c1003d82ff697 (patch) | |
tree | 465e749b6a501187c25981c103125bf7abdaa32f /src | |
parent | c9ddfbead428ec96459cd80b57aba6ad6ed0492a (diff) | |
download | ayatana-indicator-messages-e8e99703ef0c565f07a9d1eba03c1003d82ff697.tar.gz ayatana-indicator-messages-e8e99703ef0c565f07a9d1eba03c1003d82ff697.tar.bz2 ayatana-indicator-messages-e8e99703ef0c565f07a9d1eba03c1003d82ff697.zip |
Allow adding actions to MessagingMenuMessage
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index d766f24..4eaaed0 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -509,13 +509,14 @@ im_application_list_message_added (Application *app, const gchar *subtitle; const gchar *body; gint64 time; + GVariantIter *action_iter; gboolean draws_attention; GSimpleAction *action; GIcon *app_icon; gchar *app_iconstr; - g_variant_get (message, "(&s&s&s&s&sxb)", - &id, &iconstr, &title, &subtitle, &body, &time, &draws_attention); + g_variant_get (message, "(&s&s&s&s&sxa(ssgav)b)", + &id, &iconstr, &title, &subtitle, &body, &time, &action_iter, &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; @@ -528,6 +529,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_free (app_iconstr); g_object_unref (action); } |