[dia] [gtk-deprecated] no more gtk_set_locale()



commit 64597b78c6d0ee18b22dfd0735d275b8b991584e
Author: Hans Breuer <hans breuer org>
Date:   Sun Mar 27 12:07:53 2011 +0200

    [gtk-deprecated] no more gtk_set_locale()

 app/app_procs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/app_procs.c b/app/app_procs.c
index d3b9ede..b1b515d 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -749,7 +749,11 @@ app_init (int argc, char **argv)
 
   argv0 = (argc > 0) ? argv[0] : "(none)";
 
+#if GTK_CHECK_VERSION(2,24,0)
+  /* ... use setlocale directly? */
+#else
   gtk_set_locale();
+#endif
   setlocale(LC_NUMERIC, "C");
   _setup_textdomains ();
 



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