]> git.saurik.com Git - wxWidgets.git/commitdiff
There shouldn't be any need to draw the backgound
authorRobert Roebling <robert@roebling.de>
Sat, 12 Mar 2005 10:30:47 +0000 (10:30 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 12 Mar 2005 10:30:47 +0000 (10:30 +0000)
    under a sash.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/renderer.cpp
src/gtk1/renderer.cpp

index e89a2beb747896ead12010d8f1e5ca4f006304c0..4642766fb8a1557dc1fb87a6df13af3fe3ebc103 100644 (file)
@@ -303,10 +303,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
         erase_rect.width = w;
     }
 
-    // we must erase everything first, otherwise the garbage from the old sash
-    // is left when dragging it
-    //
-    // TODO: is this the right way to draw themed background?
+#if 0
+    // RR: After a correction to the orientation of the sash
+    //     this doesn't seem to be required anymore and it
+    //     seems to confuse some themes
+
+    // we must erase everything first, otherwise the garbage
+    // from the old sash is left when dragging it
     gtk_paint_flat_box
     (
         win->m_wxwindow->style,
@@ -315,12 +318,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
         GTK_SHADOW_NONE,
         NULL,
         win->m_wxwindow,
-        (char *)"base", // const_cast
+        (char *)"viewportbin", // const_cast
         erase_rect.x,
         erase_rect.y,
         erase_rect.width,
         erase_rect.height
     );
+#endif
 
 #ifdef __WXGTK20__
     gtk_paint_handle
index e89a2beb747896ead12010d8f1e5ca4f006304c0..4642766fb8a1557dc1fb87a6df13af3fe3ebc103 100644 (file)
@@ -303,10 +303,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
         erase_rect.width = w;
     }
 
-    // we must erase everything first, otherwise the garbage from the old sash
-    // is left when dragging it
-    //
-    // TODO: is this the right way to draw themed background?
+#if 0
+    // RR: After a correction to the orientation of the sash
+    //     this doesn't seem to be required anymore and it
+    //     seems to confuse some themes
+
+    // we must erase everything first, otherwise the garbage
+    // from the old sash is left when dragging it
     gtk_paint_flat_box
     (
         win->m_wxwindow->style,
@@ -315,12 +318,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
         GTK_SHADOW_NONE,
         NULL,
         win->m_wxwindow,
-        (char *)"base", // const_cast
+        (char *)"viewportbin", // const_cast
         erase_rect.x,
         erase_rect.y,
         erase_rect.width,
         erase_rect.height
     );
+#endif
 
 #ifdef __WXGTK20__
     gtk_paint_handle