aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2009-09-23 22:18:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-23 22:18:37 +0800
commit4ea1e5b0c0f025bf8cb12ff4d496f6b58f09f93c (patch)
tree68f8eb1d0cf125754e910f5aaa86c51b57147c3d
parent7cc4285c74babc21dc7b8a4bd01deec603f8af34 (diff)
downloadgsoc2013-evolution-4ea1e5b0c0f025bf8cb12ff4d496f6b58f09f93c.tar.gz
gsoc2013-evolution-4ea1e5b0c0f025bf8cb12ff4d496f6b58f09f93c.tar.zst
gsoc2013-evolution-4ea1e5b0c0f025bf8cb12ff4d496f6b58f09f93c.zip
Bug 594988 - Drop generic dialog titles
Drop useless generic dialog titles: - "Evolution Information" - "Evolution Warning" - "Evolution Query" - "Evolution Error" HIG suggests alerts (for which these titles are only used as far as I know) do not have a title anyway.
-rw-r--r--e-util/e-error.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/e-util/e-error.c b/e-util/e-error.c
index ee3c47e9bb..e31b7732d8 100644
--- a/e-util/e-error.c
+++ b/e-util/e-error.c
@@ -112,12 +112,11 @@ map_response(const gchar *name)
static struct {
const gchar *name;
const gchar *icon;
- const gchar *title;
} type_map[] = {
- { "info", GTK_STOCK_DIALOG_INFO, N_("Evolution Information") },
- { "warning", GTK_STOCK_DIALOG_WARNING, N_("Evolution Warning") },
- { "question", GTK_STOCK_DIALOG_QUESTION, N_("Evolution Query") },
- { "error", GTK_STOCK_DIALOG_ERROR, N_("Evolution Error") },
+ { "info", GTK_STOCK_DIALOG_INFO },
+ { "warning", GTK_STOCK_DIALOG_WARNING },
+ { "question", GTK_STOCK_DIALOG_QUESTION },
+ { "error", GTK_STOCK_DIALOG_ERROR },
};
static gint
@@ -520,7 +519,7 @@ e_error_newv(GtkWindow *parent, const gchar *tag, const gchar *arg0, va_list ap)
gtk_window_set_title((GtkWindow *)dialog, out->str);
g_string_truncate(out, 0);
} else
- gtk_window_set_title((GtkWindow *)dialog, dgettext(table->translation_domain, type_map[e->type].title));
+ gtk_window_set_title((GtkWindow *)dialog, out->str);
if (e->primary) {
g_string_append(out, "<span weight=\"bold\" size=\"larger\">");