diff options
author | Will Thompson <will@willthompson.co.uk> | 2018-09-18 14:30:18 +0100 |
---|---|---|
committer | Alberto Fanjul <albertofanjul@gmail.com> | 2019-03-13 23:54:16 +0000 |
commit | 2dbaeef0e8aaf095acc49d447c0105a938840f7c (patch) | |
tree | d44e77046ebadc7ba253029c69dcd4cfedccc339 /org.gnome.Glade.json | |
parent | 8341cf78bc6879cb2d50e12b5886ee7dca3d09f2 (diff) | |
download | glade-2dbaeef0e8aaf095acc49d447c0105a938840f7c.tar.gz |
GladeProject: escape markup in parser errors
If you try to load a non-XML file, such as Glade's own README, the
parser error contains something like this:
Start tag expected, '<' not found
glade_util_ui_message() treats the supplied message as markup; so the
literal < in the error message trips it up:
Gtk-WARNING **: Failed to set text 'Error parsing file '/home/wjt/src/gnome/glade/README' on line 1
Start tag expected, '<' not found
' from markup due to error parsing markup: Error on line 2 char 30: Odd character 'f', expected a '=' after attribute name 'not' of element '''
To fix this, escape the message before passing it to
glade_util_ui_message().
Diffstat (limited to 'org.gnome.Glade.json')
0 files changed, 0 insertions, 0 deletions