[evolution-patches] Fix unlocalized string in color setting of mail's preference dialog.



Hi, guys,

You can see the bug by the following steps:
1. Choose [Tools] -> [Settings].
2. Select [Mail Preferences].
3. Select [Colors] tab.
"Important", "Work", "Personal", "To Do" and "Later" are not localized.

Because mail_preferences_construct() function call gtk_entry_set_text()
to set a raw string there. But in fact, glade has set the entry's text
by a localized string.

So, gtk_entry_set_text (prefs->labels[i].name, label->name) can be
removed.

Regards,

-- 
Yong.Sun <Yong Sun Sun com>
SUN (China) ERI
Index: mail-preferences.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/Attic/mail-preferences.c,v
retrieving revision 1.32.4.1
diff -u -p -r1.32.4.1 mail-preferences.c
--- mail-preferences.c	29 Sep 2003 15:43:30 -0000	1.32.4.1
+++ mail-preferences.c	22 Dec 2003 10:01:50 -0000
@@ -348,7 +348,6 @@ mail_preferences_construct (MailPreferen
 		prefs->labels[i].color = GNOME_COLOR_PICKER (glade_xml_get_widget (gui, widget_name));
 		g_free (widget_name);
 		
-		gtk_entry_set_text (prefs->labels[i].name, label->name);
 		g_signal_connect (prefs->labels[i].name, "changed", G_CALLBACK (settings_changed), prefs);
 		
 		colorpicker_set_color (prefs->labels[i].color, label->colour);


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