* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#include <config.h>
+
#include <locale.h>
#include <stdlib.h>
+#include <string.h>
#include "gdkx.h"
#include "gdk.h" /* For gdk_flush() */
#include "gdkpixmap.h"
#include "gdkinternals.h"
#include "gdkdisplay-x11.h"
-
-#if HAVE_CONFIG_H
-# include <config.h>
-# if STDC_HEADERS
-# include <string.h>
-# endif
-#endif
+#include "gdkalias.h"
/* If this variable is FALSE, it indicates that we should
g_warning ("locale not supported by Xlib");
if (!XSetLocaleModifiers (""))
- g_warning ("can not set locale modifiers");
+ g_warning ("cannot set locale modifiers");
if ((strcmp (current_locale, "C")) && (strcmp (current_locale, "POSIX")))
{
}
static GdkDisplay *
-find_a_display ()
+find_a_display (void)
{
GdkDisplay *display = gdk_display_get_default ();
}
else
{
- if (XwcTextListToTextProperty (xdisplay, (wchar_t**)&src, 1,
+ wchar_t *tmp;
+
+ if (XwcTextListToTextProperty (xdisplay, &tmp, 1,
XTextStyle, &tpr) != Success)
{
return NULL;
}
+
+ src = (GdkWChar *)tmp;
}
/*
* We must copy the string into an area allocated by glib, because
return i;
}
}
+
+#define __GDK_IM_X11_C__
+#include "gdkaliasdef.c"