From d0fab56c84a593bf7bbc8da1cbc4ad3223117a4f Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 7 Aug 2001 05:51:37 +0000 Subject: allow toggling between converting from the gdkfont's charset or from the 2001-08-07 Larry Ewing * 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 --- widgets/misc/e-unicode.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'widgets/misc/e-unicode.c') 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); -- cgit v1.2.3