diff options
author | Not Zed <NotZed@Ximian.com> | 2004-05-12 11:50:33 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-05-12 11:50:33 +0800 |
commit | 2e3c52fbef7ca35f85d3002571d9daffc3337258 (patch) | |
tree | 232ba74cf9edfcde5fd45ae99830fc5eaf59d457 /widgets | |
parent | 2d456880ac86fd20297a06bdf6c8e8bc84a00355 (diff) | |
download | gsoc2013-evolution-2e3c52fbef7ca35f85d3002571d9daffc3337258.tar.gz gsoc2013-evolution-2e3c52fbef7ca35f85d3002571d9daffc3337258.tar.zst gsoc2013-evolution-2e3c52fbef7ca35f85d3002571d9daffc3337258.zip |
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
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/ChangeLog | 3 | ||||
-rw-r--r-- | widgets/misc/e-error.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index b8bd494a42..02fb54a1e3 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -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. diff --git a/widgets/misc/e-error.c b/widgets/misc/e-error.c index 0caceb37d1..0aceed624f 100644 --- a/widgets/misc/e-error.c +++ b/widgets/misc/e-error.c @@ -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); } |