• Will Thompson's avatar
    GladeProject: escape markup in parser errors · 2dbaeef0
    Will Thompson authored
    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().
    2dbaeef0
Name
Last commit
Last update
build Loading commit data...
data Loading commit data...
doc Loading commit data...
gladeui Loading commit data...
help Loading commit data...
m4 Loading commit data...
man Loading commit data...
plugins Loading commit data...
po Loading commit data...
snap Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
BUGS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.GPL Loading commit data...
COPYING.LGPL Loading commit data...
ChangeLog.old.gz Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
INTERNALS Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.svn Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
glade-rules.mk Loading commit data...
glade.doap Loading commit data...
org.gnome.Glade.json Loading commit data...