]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/themes/gtk.cpp
The mac toolbar was redrawing buttons when not shown -
[wxWidgets.git] / src / univ / themes / gtk.cpp
index 99d48189d6bda32e4baec436dc8c807c4b96a11e..39a0ba958efa6133c0e7f556a6a65ab1f905c812 100644 (file)
@@ -54,7 +54,7 @@
 // constants (to be removed, for testing only)
 // ----------------------------------------------------------------------------
 
-static const wxCoord BORDER_THICKNESS = 1;
+static const size_t BORDER_THICKNESS = 1;
 
 // ----------------------------------------------------------------------------
 // wxGTKRenderer: draw the GUI elements in GTK style
@@ -1566,7 +1566,7 @@ wxRect wxGTKRenderer::GetTextClientArea(const wxTextCtrl *text,
                                         wxCoord *extraSpaceBeyond)
 {
     wxRect rectText = rect;
-    rectText.Inflate(-2*BORDER_THICKNESS);
+    rectText.Deflate(2*BORDER_THICKNESS);
 
     if ( text->WrapLines() )
     {
@@ -2395,7 +2395,7 @@ void wxGTKRenderer::AdjustSize(wxSize *size, const wxWindow *window)
             size->y += 4;
         }
     } else
-#endif wxUSE_BUTTON
+#endif //wxUSE_BUTTON
     if ( wxDynamicCast(window, wxScrollBar) )
     {
         // we only set the width of vert scrollbars and height of the