From b1fa69a2ce44ba379701df1e308d751edea47ced Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 20 Aug 2015 21:15:08 -0700 Subject: [PATCH] Fix clipped cell contents with custom renderers and GTK3, see #17116 --- src/gtk/dataview.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index b86ea77685..7233f6fe83 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -2439,6 +2439,14 @@ void wxDataViewCustomRenderer::GtkInitTextRenderer() g_object_ref_sink(m_text_renderer); GtkApplyAlignment(GTK_CELL_RENDERER(m_text_renderer)); +#if GTK_CHECK_VERSION(2,18,0) +#ifndef __WXGTK3__ + if (gtk_check_version(2,18,0) == NULL) +#endif + { + gtk_cell_renderer_set_padding(GTK_CELL_RENDERER(m_text_renderer), 0, 0); + } +#endif } GtkCellRendererText *wxDataViewCustomRenderer::GtkGetTextRenderer() const