forked from AuroraMiddleware/gtk
XIM: gracefully deal with non-X backends
Patch by Young-Ho Cha, bug 660309.
This commit is contained in:
parent
3c70a12785
commit
ebd28de588
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user