Commit ebd28de5 authored by Matthias Clasen's avatar Matthias Clasen

XIM: gracefully deal with non-X backends

Patch by Young-Ho Cha, bug 660309.
parent 3c70a127
......@@ -650,6 +650,8 @@ gtk_im_context_xim_new (void)
GtkIMContextXIM *result;
const gchar *charset;
if (!GDK_IS_X11_DISPLAY(gdk_display_get_default()))
return NULL;
result = g_object_new (GTK_TYPE_IM_CONTEXT_XIM, NULL);
result->locale = g_strdup (setlocale (LC_CTYPE, NULL));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment