[evolution/webkit] Call setlocale() instead of gtk_set_locale().



commit a0591540d7c772ec06c48f29560c1ed75b6c5c90
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Dec 22 20:25:24 2010 -0500

    Call setlocale() instead of gtk_set_locale().
    
    gtk_set_locale() has been deprecated in GTK+ 2.23.3.

 capplet/anjal-settings-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/capplet/anjal-settings-main.c b/capplet/anjal-settings-main.c
index eb9ccce..f211bea 100644
--- a/capplet/anjal-settings-main.c
+++ b/capplet/anjal-settings-main.c
@@ -24,6 +24,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <locale.h>
 #include <unistd.h>
 #include <string.h>
 #include <stdio.h>
@@ -240,7 +241,7 @@ main (gint argc, gchar *argv[])
 	textdomain (GETTEXT_PACKAGE);
 #endif
 
-	gtk_set_locale ();
+	setlocale (LC_ALL, NULL);
 
 	if (!gtk_init_with_args (&argc, &argv, _("Anjal email client"), entries, NULL, &error)) {
 		g_error ("Unable to start Anjal: %s\n", error->message);



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