duh, use the right node pointer for title and secondary text.

2004-05-12  Not Zed  <NotZed@Ximian.com>

        * e-error.c (ee_load): duh, use the right node pointer for title
        and secondary text.

svn path=/trunk/; revision=25873
This commit is contained in:
Not Zed
2004-05-12 03:50:33 +00:00
committed by Michael Zucci
parent 2d456880ac
commit 2e3c52fbef
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2004-05-12 Not Zed <NotZed@Ximian.com>
* e-error.c (ee_load): duh, use the right node pointer for title
and secondary text.
* e-system-errors.xml: make the Because cases the same.
* e-system-errors.xml.h: add for translators.

View File

@ -154,7 +154,7 @@ static void
ee_load(const char *path)
{
xmlDocPtr doc;
xmlNodePtr root, error, scan, node;
xmlNodePtr root, error, scan;
struct _e_error *e;
struct _e_error_button *lastbutton;
struct _e_error_table *table;
@ -223,12 +223,12 @@ ee_load(const char *path)
xmlFree(tmp);
}
} else if (!strcmp(scan->name, "secondary")) {
if ((tmp = xmlNodeGetContent(node))) {
if ((tmp = xmlNodeGetContent(scan))) {
e->secondary = g_strdup(_(tmp));
xmlFree(tmp);
}
} else if (!strcmp(scan->name, "title")) {
if ((tmp = xmlNodeGetContent(node))) {
if ((tmp = xmlNodeGetContent(scan))) {
e->title = g_strdup(_(tmp));
xmlFree(tmp);
}