]> git.saurik.com Git - wxWidgets.git/commitdiff
Improved checkmark on wxMotif.
authorStefan Neis <Stefan.Neis@t-online.de>
Wed, 23 Feb 2000 17:53:42 +0000 (17:53 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Wed, 23 Feb 2000 17:53:42 +0000 (17:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 9cd5c0389529614e359d9a6a6b9bb18c79915a48..2e625da139412dd23aa92c9f02cc8d79972cf99e 100644 (file)
@@ -793,9 +793,9 @@ void wxGridCellBoolEditor::SetSize(const wxRect& r)
 
     // the checkbox without label still has some space to the right in wxGTK,
     // so shift it to the right
-#ifdef __WXGTK__
+#if defined(__WXGTK__) || defined (__WXMOTIF__)
     w -= 8;
-#endif // GTK
+#endif // GTK && Motif
 
     m_control->Move(r.x + r.width/2 - w/2, r.y + r.height/2 - h/2);
 }
@@ -1225,7 +1225,7 @@ wxSize wxGridCellBoolRenderer::GetBestSize(wxGrid& grid,
         checkSize = size.y + wxGRID_CHECKMARK_MARGIN;
 
         // FIXME wxGTK::wxCheckBox::GetBestSize() gives "wrong" result
-#ifdef __WXGTK__
+#if defined(__WXGTK__) || defined(__WXMOTIF__)
         checkSize -= size.y / 2;
 #endif