• 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
..
.gitignore Loading commit data...
Makefile.am Loading commit data...
atk.png Loading commit data...
glade-accumulators.c Loading commit data...
glade-accumulators.h Loading commit data...
glade-adaptor-chooser-widget.c Loading commit data...
glade-adaptor-chooser-widget.h Loading commit data...
glade-adaptor-chooser-widget.ui Loading commit data...
glade-adaptor-chooser.c Loading commit data...
glade-adaptor-chooser.h Loading commit data...
glade-adaptor-chooser.ui Loading commit data...
glade-app.c Loading commit data...
glade-app.h Loading commit data...
glade-base-editor.c Loading commit data...
glade-base-editor.h Loading commit data...
glade-base-editor.ui Loading commit data...
glade-builtins.c Loading commit data...
glade-builtins.h Loading commit data...
glade-catalog.c Loading commit data...
glade-catalog.h Loading commit data...
glade-cell-renderer-icon.c Loading commit data...
glade-cell-renderer-icon.h Loading commit data...
glade-clipboard.c Loading commit data...
glade-clipboard.h Loading commit data...
glade-command.c Loading commit data...
glade-command.h Loading commit data...
glade-cursor.c Loading commit data...
glade-cursor.h Loading commit data...
glade-debug.c Loading commit data...
glade-debug.h Loading commit data...
glade-design-layout.c Loading commit data...
glade-design-layout.css Loading commit data...
glade-design-layout.h Loading commit data...
glade-design-private.h Loading commit data...
glade-design-view.c Loading commit data...
glade-design-view.h Loading commit data...
glade-displayable-values.c Loading commit data...
glade-displayable-values.h Loading commit data...
glade-dnd.c Loading commit data...
glade-dnd.h Loading commit data...
glade-drag.c Loading commit data...
glade-drag.h Loading commit data...
glade-editable.c Loading commit data...
glade-editable.h Loading commit data...
glade-editor-property.c Loading commit data...
glade-editor-property.h Loading commit data...
glade-editor-skeleton.c Loading commit data...
glade-editor-skeleton.h Loading commit data...
glade-editor-table.c Loading commit data...
glade-editor-table.h Loading commit data...
glade-editor.c Loading commit data...
glade-editor.h Loading commit data...
glade-editor.ui Loading commit data...
glade-id-allocator.c Loading commit data...
glade-id-allocator.h Loading commit data...
glade-inspector.c Loading commit data...
glade-inspector.h Loading commit data...
glade-marshallers.list Loading commit data...
glade-name-context.c Loading commit data...
glade-name-context.h Loading commit data...
glade-named-icon-chooser-dialog.c Loading commit data...
glade-named-icon-chooser-dialog.h Loading commit data...
glade-object-stub.c Loading commit data...
glade-object-stub.h Loading commit data...
glade-palette.c Loading commit data...
glade-palette.h Loading commit data...
glade-path.h Loading commit data...
glade-placeholder.c Loading commit data...
glade-placeholder.h Loading commit data...
glade-popup.c Loading commit data...
glade-popup.h Loading commit data...
glade-preview-template.c Loading commit data...
glade-preview-template.h Loading commit data...
glade-preview-tokens.h Loading commit data...
glade-preview.c Loading commit data...
glade-preview.h Loading commit data...
glade-previewer-main.c Loading commit data...
glade-previewer.c Loading commit data...
glade-previewer.h Loading commit data...
glade-previewer.rc.in Loading commit data...
glade-private.h Loading commit data...
glade-project-properties.c Loading commit data...
glade-project-properties.h Loading commit data...
glade-project-properties.ui Loading commit data...
glade-project.c Loading commit data...
glade-project.h Loading commit data...
glade-property-class.c Loading commit data...
glade-property-class.h Loading commit data...
glade-property-label.c Loading commit data...
glade-property-label.h Loading commit data...
glade-property-label.ui Loading commit data...
glade-property-shell.c Loading commit data...
glade-property-shell.h Loading commit data...
glade-property.c Loading commit data...
glade-property.h Loading commit data...
glade-signal-class.c Loading commit data...
glade-signal-class.h Loading commit data...
glade-signal-editor.c Loading commit data...
glade-signal-editor.h Loading commit data...
glade-signal-model.c Loading commit data...
glade-signal-model.h Loading commit data...
glade-signal.c Loading commit data...
glade-signal.h Loading commit data...
glade-template.c Loading commit data...
glade-tsort.c Loading commit data...
glade-tsort.h Loading commit data...
glade-utils.c Loading commit data...
glade-utils.h Loading commit data...
glade-widget-action.c Loading commit data...
glade-widget-action.h Loading commit data...
glade-widget-adaptor.c Loading commit data...
glade-widget-adaptor.h Loading commit data...
glade-widget.c Loading commit data...
glade-widget.h Loading commit data...
glade-xml-utils.c Loading commit data...
glade-xml-utils.h Loading commit data...
glade.h Loading commit data...
glade_plugin.def Loading commit data...
gladeui-enum-types.c.template Loading commit data...
gladeui-enum-types.h.template Loading commit data...
gladeui-resources.gresource.xml Loading commit data...
gladeui.rc.in Loading commit data...
icon-naming-spec.c Loading commit data...