#include <sys/wait.h> // for WNOHANG
#include <unistd.h>
-#include "glib.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
-#include "gdk/gdkx.h"
+#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
#if wxUSE_DETECT_SM
- #include "X11/Xlib.h"
- #include "X11/SM/SMlib.h"
+ #include <X11/SM/SMlib.h>
#include "wx/unix/utilsx11.h"
#endif
WXDLLIMPEXP_CORE wxCharBuffer
wxConvertToGTK(const wxString& s, wxFontEncoding enc)
{
- // Passing an empty string to cMB2WC() returns an invalid buffer, i.e. a
- // buffer whose data is NULL and this can result in passing NULL to a GTK+
- // function and a crash, so handle this case specially to avoid this.
- if ( s.empty() )
- return wxCharBuffer("");
-
wxWCharBuffer wbuf;
if ( enc == wxFONTENCODING_SYSTEM || enc == wxFONTENCODING_DEFAULT )
{