diff -Nuar gtk+-2.1.3/modules/input/gtkimcontextxim.c gtk+-2.1.3-thxim/modules/input/gtkimcontextxim.c
--- gtk+-2.1.3/modules/input/gtkimcontextxim.c	2002-12-18 10:36:34.000000000 +0700
+++ gtk+-2.1.3-thxim/modules/input/gtkimcontextxim.c	2002-12-18 10:45:11.000000000 +0700
@@ -260,7 +260,7 @@
 						      _("IM Preedit style"),
 						      _("How to draw the input method preedit string"),
 						      GTK_TYPE_IM_PREEDIT_STYLE,
-						      GTK_IM_PREEDIT_CALLBACK,
+						      strncmp(info->locale, "th", 2) == 0 ? GTK_IM_PREEDIT_NOTHING : GTK_IM_PREEDIT_CALLBACK,
 						      G_PARAM_READWRITE));
 
   if (!g_object_class_find_property (G_OBJECT_GET_CLASS (info->settings),
@@ -269,7 +269,7 @@
 						      _("IM Status style"),
 						      _("How to draw the input method statusbar"),
 						      GTK_TYPE_IM_STATUS_STYLE,
-						      GTK_IM_STATUS_CALLBACK,
+						      strncmp(info->locale, "th", 2) == 0 ? GTK_IM_STATUS_NOTHING : GTK_IM_STATUS_CALLBACK,
 						      G_PARAM_READWRITE));
 
   info->status_set = g_signal_connect_swapped (info->settings,
diff -Nuar gtk+-2.1.3/modules/input/imxim.c gtk+-2.1.3-thxim/modules/input/imxim.c
--- gtk+-2.1.3/modules/input/imxim.c	2002-12-18 10:36:20.000000000 +0700
+++ gtk+-2.1.3-thxim/modules/input/imxim.c	2002-12-18 10:45:04.000000000 +0700
@@ -27,7 +27,7 @@
   N_("X Input Method"),            /* Human readable name */
   "gtk+",			   /* Translation domain */
    GTK_LOCALEDIR,		   /* Dir for bindtextdomain (not strictly needed for "gtk+") */
-  "ko:ja:zh"		           /* Languages for which this module is the default */
+  "ko:ja:th:zh"		           /* Languages for which this module is the default */
 };
 
 static const GtkIMContextInfo *info_list[] = {
