]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/headerctrlg.cpp
remove wxSYS_DEFAULT_PALETTE: it's supported only by wxMSW and it never worked there...
[wxWidgets.git] / src / generic / headerctrlg.cpp
index 48e3117c397326d4c61c19b80f4b236028c8b923..491354c6bc60259d047c9039e032bf75d30c15ba 100644 (file)
@@ -497,8 +497,8 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
     GetClientSize(&w, &h);
     
 #ifdef __WXGTK__
-    int vw;
-    GetVirtualSize(&vw, NULL);
+//    int vw;
+//    GetVirtualSize(&vw, NULL);
 #endif
 
     wxAutoBufferedPaintDC dc(this);
@@ -553,8 +553,8 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
 #ifdef __WXGTK__
         if (i == count-1)
         {
-            colWidth = wxMax( colWidth, vw - xpos );
-            state |= wxCONTROL_EXPANDED;
+//            colWidth = wxMax( colWidth, vw - xpos );
+            state |= wxCONTROL_DIRTY;
         }
 #endif