Commit 73683f2ee7f255e05a1cbfd7f2caead606108614
1 parent
86d3732f
Exists in
master
and in
5 other branches
Melhorando mensagem de erro no processamento do xml, incluindo teste por atributo invalido
Showing
3 changed files
with
7 additions
and
4 deletions
Show diff stats
src/gtk/actions.c
src/gtk/uiparser/parsefile.c
... | ... | @@ -312,7 +312,7 @@ trace("%s ----",__FUNCTION__); |
312 | 312 | return -1; |
313 | 313 | } |
314 | 314 | |
315 | - context = g_markup_parse_context_new(&parser,G_MARKUP_TREAT_CDATA_AS_TEXT,info,NULL); | |
315 | + context = g_markup_parse_context_new(&parser,G_MARKUP_TREAT_CDATA_AS_TEXT|G_MARKUP_PREFIX_ERROR_POSITION,info,NULL); | |
316 | 316 | |
317 | 317 | if(!g_markup_parse_context_parse(context,text,strlen(text),&error)) |
318 | 318 | { | ... | ... |
ui/00default.xml
... | ... | @@ -152,9 +152,9 @@ |
152 | 152 | </toolbar> |
153 | 153 | |
154 | 154 | <popup name='selectionpopup' type='selection'> |
155 | - <menuitem action='Copy'/> | |
156 | - <menuitem action='Append'/> | |
157 | - <menuitem action='Unselect'/> | |
155 | + <menuitem action='copy' mode='begin' /> | |
156 | + <menuitem action='copy' mode='append' /> | |
157 | + <menuitem action='unselect'/> | |
158 | 158 | <menuitem action='selectall'/> |
159 | 159 | |
160 | 160 | <separator /> | ... | ... |