]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsgtk.cpp
Fix vertical rules rendering in generic wxDataViewCtrl.
[wxWidgets.git] / src / gtk / utilsgtk.cpp
index 8e36cc40b79f559566e94691df98d5033bc6ea37..0850010f6e6257814334abb11cd42e4c562cd408 100644 (file)
 #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
@@ -116,12 +113,6 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
 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 )
     {