X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02800dde9e8e4a947229fa83ab39f0ca331d9653..a4f6fe43c33bd7933645d110ad2719871dab043d:/include/wx/gtk/dvrenderers.h?ds=sidebyside diff --git a/include/wx/gtk/dvrenderers.h b/include/wx/gtk/dvrenderers.h index 262f9957d7..b9119a9533 100644 --- a/include/wx/gtk/dvrenderers.h +++ b/include/wx/gtk/dvrenderers.h @@ -12,7 +12,12 @@ #ifndef _WX_GTK_DVRENDERERS_H_ #define _WX_GTK_DVRENDERERS_H_ -typedef struct _GdkRectangle GdkRectangle; +#ifdef __WXGTK3__ + typedef struct _cairo_rectangle_int cairo_rectangle_int_t; + typedef cairo_rectangle_int_t GdkRectangle; +#else + typedef struct _GdkRectangle GdkRectangle; +#endif // --------------------------------------------------------- // wxDataViewTextRenderer @@ -137,10 +142,9 @@ public: virtual GtkCellRendererText *GtkGetTextRenderer() const; -protected: +private: bool Init(wxDataViewCellMode mode, int align); -private: // Called from GtkGetTextRenderer() to really create the renderer if // necessary. void GtkInitTextRenderer();