diff --git a/panel-plugin/sn-item.c b/panel-plugin/sn-item.c index cfb8e94..f0487b7 100644 --- a/panel-plugin/sn-item.c +++ b/panel-plugin/sn-item.c @@ -80,6 +80,7 @@ struct _SnItem gchar *id; gchar *title; + gchar *label; gchar *tooltip_title; gchar *tooltip_subtitle; gchar *icon_desc; @@ -258,6 +259,7 @@ sn_item_init (SnItem *item) item->id = NULL; item->title = NULL; + item->label = NULL; item->tooltip_title = NULL; item->tooltip_subtitle = NULL; item->icon_desc = NULL; @@ -302,6 +304,7 @@ sn_item_finalize (GObject *object) g_free (item->id); g_free (item->title); + g_free (item->label); g_free (item->tooltip_title); g_free (item->tooltip_subtitle); g_free (item->icon_desc); @@ -838,6 +841,11 @@ sn_item_get_all_properties_result (GObject *source_object, pb_val1 = sn_item_extract_pixbuf (value); update_new_pixbuf (pb_val1, overlay_icon_pixbuf, update_icon); } + else if (!g_strcmp0 (name, "XAyatanaLabel")) + { + cstr_val1 = g_variant_get_string (value, NULL); + update_new_string (cstr_val1, label, update_tooltip); + } } g_variant_iter_free (iter); @@ -993,6 +1001,11 @@ sn_item_get_tooltip (SnItem *item, *title = item->tooltip_title; *subtitle = NULL; } + else if (item->label != NULL ) + { + *title = item->label; + *subtitle = NULL; + } else if (item->title != NULL ) { *title = item->title;