aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-08-07 13:51:37 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-08-07 13:51:37 +0800
commitd0fab56c84a593bf7bbc8da1cbc4ad3223117a4f (patch)
tree7eb5d33c9fd51bd9cc49bfc68f4f5d3629eefb36 /widgets/misc
parent83b2e9c05c490db58c558c17e39c59ec2a6915eb (diff)
downloadgsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.tar
gsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.tar.gz
gsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.tar.bz2
gsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.tar.lz
gsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.tar.xz
gsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.tar.zst
gsoc2013-evolution-d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f.zip
allow toggling between converting from the gdkfont's charset or from the
2001-08-07 Larry Ewing <lewing@ximian.com> * gal/widgets/e-unicode.c (e_utf8_from_gtk_event_key): allow toggling between converting from the gdkfont's charset or from the locale charset for testing. svn path=/trunk/; revision=11723
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-unicode.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/widgets/misc/e-unicode.c b/widgets/misc/e-unicode.c
index acb4898120..b27f5ef812 100644
--- a/widgets/misc/e-unicode.c
+++ b/widgets/misc/e-unicode.c
@@ -195,7 +195,17 @@ e_utf8_from_gtk_event_key (GtkWidget *widget, guint keyval, const gchar *string)
gint unilen;
if (keyval == GDK_VoidSymbol) {
- utf = e_utf8_from_gtk_string (widget, string);
+ char *use_locale = getenv ("E_UTF8_IM_USE_LOCALE");
+
+ /* FIXME This condition is meant for debugging xim input and should
+ * be removed once testing is done
+ */
+ if (use_locale) {
+ utf = e_utf8_from_locale_string (string);
+ } else {
+ utf = e_utf8_from_gtk_string (widget, string);
+ }
+
} else {
unival = gdk_keyval_to_unicode (keyval);