summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/sn-item-v0.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item-v0.c')
-rw-r--r--applets/notification_area/status-notifier/sn-item-v0.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c
index f8657137..dec9bdf1 100644
--- a/applets/notification_area/status-notifier/sn-item-v0.c
+++ b/applets/notification_area/status-notifier/sn-item-v0.c
@@ -512,6 +512,14 @@ sn_tooltip_new (GVariant *variant)
if (variant == NULL)
return NULL;
+ if (!g_variant_is_of_type (variant, G_VARIANT_TYPE ("(sa(iiay)ss)")))
+ {
+ g_warning ("Type for 'ToolTip' property should be '(sa(iiay)ss)' "
+ "but got '%s'", g_variant_get_type_string (variant));
+
+ return NULL;
+ }
+
g_variant_get (variant, "(&s@a(iiay)&s&s)",
&icon_name, &icon_pixmap,
&title, &text);