We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wf-shell/src/panel/widgets/tray/item.cpp
Line 188 in 3e7576f
both tooltip_title and tooltip_text should be checked for escapable characters before passing to set_markup
tooltip_title
tooltip_text
set_markup
The equivalent python code I've written previously to clean this up is
def sanitize_string(self, string): """Sanitize a text message so that it doesn't interfere with Pango's XML format""" string = string.replace("&", "&") string = string.replace("<", "<") string = string .replace(">", ">") string = string.replace("'", "'") string = string.replace("\"", """) return string
And the error can be triggered with this short python code
import gi gi.require_version("Gtk", "3.0") gi.require_version('AppIndicator3', '0.1') # pylint: disable=wrong-import-position,wrong-import-order from gi.repository import Gtk, Gdk, GLib # nopep8 from gi.repository import AppIndicator3 window = Gtk.Window() window.set_title("& WHY") window.show() menu = Gtk.Menu() ind = AppIndicator3.Indicator.new( "test", "test", AppIndicator3.IndicatorCategory.APPLICATION_STATUS) ind.set_title("& discover") ind.set_status(AppIndicator3.IndicatorStatus.ACTIVE) ind.set_menu(menu) window.connect('destroy', Gtk.main_quit) Gtk.main()
The text was updated successfully, but these errors were encountered:
Hi! This is actually not a bug but a feature because StatusNotifierItem allows markup tags in tooltip text: https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/Markup/
StatusNotifierItem
Sorry, something went wrong.
No branches or pull requests
wf-shell/src/panel/widgets/tray/item.cpp
Line 188 in 3e7576f
both
tooltip_title
andtooltip_text
should be checked for escapable characters before passing toset_markup
The equivalent python code I've written previously to clean this up is
And the error can be triggered with this short python code
The text was updated successfully, but these errors were encountered: