From 4ea1e5b0c0f025bf8cb12ff4d496f6b58f09f93c Mon Sep 17 00:00:00 2001 From: Paul Bolle Date: Wed, 23 Sep 2009 10:18:37 -0400 Subject: 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. --- e-util/e-error.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'e-util') 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, ""); -- cgit