Text alignment is for GTK 2.10 and above only.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-04-14 17:58:49 +00:00
parent 76a93e31dd
commit 01705e98c1

View File

@@ -1100,8 +1100,10 @@ void wxDataViewTextRenderer::SetAlignment( int align )
{
wxDataViewRenderer::SetAlignment(align);
// horizontal alignment:
if (gtk_check_version(2,10,0))
return;
// horizontal alignment:
PangoAlignment pangoAlign = PANGO_ALIGN_LEFT;
if (align & wxALIGN_RIGHT)
pangoAlign = PANGO_ALIGN_RIGHT;