Skip to content

Display tooltip title of statusnotifier items as plaintext

According to the StatusNotifierItem specification¹², only the tooltip subtitle may contain markup, not the title. The latter must therefore either be escaped before gtk_tooltip_set_markup(), or set with gtk_tooltip_set_text() instead.

Note that KDE Plasma also made this modification³, and while this did break some applications⁴ (many of which have been fixed by now), the final decision was to stick to the specification. Consequently, systray should also be able to display a title such as "<Rock&Roll>" without choking.

¹ https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/ ² https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/Markup/ ³ https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/6https://bugs.kde.org/show_bug.cgi?id=422616

Merge request reports