[glade3/offscreen-gtk3] * gladeui/glade-previewer.c: Fixed to not use gtk_set_locale().
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3/offscreen-gtk3] * gladeui/glade-previewer.c: Fixed to not use gtk_set_locale().
- Date: Wed, 22 Dec 2010 13:17:16 +0000 (UTC)
commit 9ed16678e6ca4fd02a1ba984bdabe9bbf2b5c0fd
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Dec 22 22:22:00 2010 +0900
* gladeui/glade-previewer.c: Fixed to not use gtk_set_locale().
ChangeLog | 2 ++
gladeui/glade-previewer.c | 9 ++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e40b3c6..70c484a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,8 @@
* plugins/gtk+/gtk+.xml.in: Removing Ruler classes, added GtkBox, GtkPaned, GtkButtonBox
base classes that are now instantiatable
+ * gladeui/glade-previewer.c: Fixed to not use gtk_set_locale().
+
2010-12-22 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-project.[ch]: Removed dialog and added "load-progress" signal
diff --git a/gladeui/glade-previewer.c b/gladeui/glade-previewer.c
index fa48d1c..2d0b6cc 100644
--- a/gladeui/glade-previewer.c
+++ b/gladeui/glade-previewer.c
@@ -27,6 +27,8 @@
#include <string.h>
#include <gtk/gtk.h>
+#include <gladeui/glade.h>
+
#include <glib/gi18n-lib.h>
static void
@@ -315,7 +317,12 @@ int main (int argc, char **argv)
gchar *file_name;
gchar *toplevel_name;
- gtk_set_locale ();
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, glade_app_get_locale_dir ());
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+#endif
parse_arguments (argc, argv, &toplevel_name, &file_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]