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
This commit is contained in:
Larry Ewing
2001-08-07 05:51:37 +00:00
committed by Larry Ewing
parent 83b2e9c05c
commit d0fab56c84
+11 -1
View File
@@ -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);