diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index efe4eb2801..8c73a876fc 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -229,7 +229,12 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win, typedef void (*GtkPaintLineFunc)(GtkStyle *, GdkWindow *, GtkStateType, GdkRectangle *, GtkWidget *, - gchar *, gint, gint, gint); +#ifdef __WXGTK20__ + const gchar *, +#else + gchar *, +#endif + gint, gint, gint); GtkPaintLineFunc func = isVert ? gtk_paint_vline : gtk_paint_hline; diff --git a/src/gtk1/renderer.cpp b/src/gtk1/renderer.cpp index efe4eb2801..8c73a876fc 100644 --- a/src/gtk1/renderer.cpp +++ b/src/gtk1/renderer.cpp @@ -229,7 +229,12 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win, typedef void (*GtkPaintLineFunc)(GtkStyle *, GdkWindow *, GtkStateType, GdkRectangle *, GtkWidget *, - gchar *, gint, gint, gint); +#ifdef __WXGTK20__ + const gchar *, +#else + gchar *, +#endif + gint, gint, gint); GtkPaintLineFunc func = isVert ? gtk_paint_vline : gtk_paint_hline;