Fix clipped cell contents with custom renderers and GTK3, see #17116
This commit is contained in:
parent
64bcd668c7
commit
b1fa69a2ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user