diff options
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item-v0.c')
-rw-r--r-- | applets/notification_area/status-notifier/sn-item-v0.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c index 35d28449..dca5dbb7 100644 --- a/applets/notification_area/status-notifier/sn-item-v0.c +++ b/applets/notification_area/status-notifier/sn-item-v0.c @@ -853,11 +853,13 @@ static void new_label_cb (SnItemV0 *v0, GVariant *parameters) { - char *label = NULL; + GVariant *variant; + + variant = g_variant_get_child_value (parameters, 0); g_free (v0->label); - g_variant_get (parameters, "(ss)", &label, NULL); - v0->label = g_strdup (label); + v0->label = g_variant_dup_string (variant, NULL); + g_variant_unref (variant); queue_update (v0); } |