aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-error.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-04-27 17:34:11 +0800
committerMilan Crha <mcrha@redhat.com>2009-04-27 17:34:11 +0800
commit0f7060ee7dcceac8d10aaa9100c919712de491ff (patch)
treed9eb5b7f00d21884f4b6add882d3371863ca85e4 /e-util/e-error.c
parent631d0bfd080409da87545d42de7bc4588abdf5b7 (diff)
downloadgsoc2013-evolution-0f7060ee7dcceac8d10aaa9100c919712de491ff.tar.gz
gsoc2013-evolution-0f7060ee7dcceac8d10aaa9100c919712de491ff.tar.zst
gsoc2013-evolution-0f7060ee7dcceac8d10aaa9100c919712de491ff.zip
Define .error files correctly and external-editor crash fix
** Fix for bug #561188
Diffstat (limited to 'e-util/e-error.c')
-rw-r--r--e-util/e-error.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/e-util/e-error.c b/e-util/e-error.c
index da4d034606..7c1248bb7b 100644
--- a/e-util/e-error.c
+++ b/e-util/e-error.c
@@ -507,8 +507,8 @@ e_error_newv(GtkWindow *parent, const char *tag, const char *arg0, va_list ap)
out = g_string_new("");
- if (e->title) {
- ee_build_label(out, dgettext(table->translation_domain, e->title), args, FALSE);
+ if (e->title && *e->title) {
+ ee_build_label(out, e->title, args, FALSE);
gtk_window_set_title((GtkWindow *)dialog, out->str);
g_string_truncate(out, 0);
} else
@@ -517,19 +517,19 @@ e_error_newv(GtkWindow *parent, const char *tag, const char *arg0, va_list ap)
if (e->primary) {
g_string_append(out, "<span weight=\"bold\" size=\"larger\">");
- ee_build_label(out, dgettext(table->translation_domain, e->primary), args, TRUE);
+ ee_build_label(out, e->primary, args, TRUE);
g_string_append(out, "</span>\n\n");
oerr = g_string_new("");
- ee_build_label(oerr, dgettext(table->translation_domain, e->primary), args, FALSE);
+ ee_build_label(oerr, e->primary, args, FALSE);
perr = g_strdup (oerr->str);
g_string_free (oerr, TRUE);
} else
perr = g_strdup (gtk_window_get_title (GTK_WINDOW (dialog)));
if (e->secondary) {
- ee_build_label(out, dgettext(table->translation_domain, e->secondary), args, TRUE);
+ ee_build_label(out, e->secondary, args, TRUE);
oerr = g_string_new("");
- ee_build_label(oerr, dgettext(table->translation_domain, e->secondary), args, TRUE);
+ ee_build_label(oerr, e->secondary, args, TRUE);
serr = g_strdup (oerr->str);
g_string_free (oerr, TRUE);
}