[evolution] Bug 594988 - Drop generic dialog titles



commit 4ea1e5b0c0f025bf8cb12ff4d496f6b58f09f93c
Author: Paul Bolle <pebolle tiscali nl>
Date:   Wed Sep 23 10:18:37 2009 -0400

    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 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/e-util/e-error.c b/e-util/e-error.c
index ee3c47e..e31b773 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\">");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]