sn-item: Remove support for XAyatanaLabel.
It's unsupported by other providers, and although appindicator
source shows it being updated, it's causing a segfault when trying
to unpack the XAyatanaLabel property.
Michael Webster
3 years ago
587 | 587 |
{
|
588 | 588 |
g_autoptr(GVariant) tt_var;
|
589 | 589 |
|
590 | |
if (item->is_ai)
|
591 | |
{
|
592 | |
gchar *text;
|
593 | |
|
594 | |
text = get_string_property (item, "XAyatanaLabel");
|
595 | |
|
596 | |
if (text)
|
597 | |
{
|
598 | |
xapp_status_icon_set_tooltip_text (item->status_icon, text);
|
599 | |
g_debug ("Tooltip text from XAyatanaLabel: %s", text);
|
600 | |
|
601 | |
g_free (text);
|
602 | |
return;
|
603 | |
}
|
604 | |
}
|
605 | |
|
606 | 590 |
tt_var = get_property (item, "ToolTip");
|
607 | 591 |
|
608 | 592 |
if (tt_var)
|
|
724 | 708 |
update_menu (item);
|
725 | 709 |
}
|
726 | 710 |
else
|
727 | |
if (g_strcmp0 (signal_name, "XAyatanaNewLabel") ||
|
728 | |
g_strcmp0 (signal_name, "NewToolTip") ||
|
|
711 |
if (g_strcmp0 (signal_name, "NewToolTip") ||
|
729 | 712 |
g_strcmp0 (signal_name, "NewTitle"))
|
730 | 713 |
{
|
731 | 714 |
update_tooltip (item);
|
70 | 70 |
<!-- These are commented out because GDBusProxy would otherwise require them,
|
71 | 71 |
but they are not available for KDE indicators
|
72 | 72 |
-->
|
73 | |
<signal name="XAyatanaNewLabel">
|
|
73 |
<!-- <signal name="XAyatanaNewLabel">
|
74 | 74 |
<arg type="s" name="label" direction="out" />
|
75 | 75 |
<arg type="s" name="guide" direction="out" />
|
76 | 76 |
</signal>
|
77 | 77 |
<property name="XAyatanaLabel" type="s" access="read" />
|
78 | 78 |
<property name="XAyatanaLabelGuide" type="s" access="read" />
|
79 | 79 |
|
80 | |
|
|
80 |
-->
|
81 | 81 |
</interface>
|
82 | 82 |
</node>
|