]> git.saurik.com Git - wxWidgets.git/commitdiff
Text alignment is for GTK 2.10 and above only.
authorRobert Roebling <robert@roebling.de>
Sat, 14 Apr 2007 17:58:49 +0000 (17:58 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 14 Apr 2007 17:58:49 +0000 (17:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dataview.cpp

index 0c1bb01885ff7f04937d0bac1d2bea0f2798eb71..27008e6b0afbb5e4f4abd4ad665627d3def5869c 100644 (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;