There shouldn't be any need to draw the backgound
under a sash. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,10 +303,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
|
|||||||
erase_rect.width = w;
|
erase_rect.width = w;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we must erase everything first, otherwise the garbage from the old sash
|
#if 0
|
||||||
// is left when dragging it
|
// RR: After a correction to the orientation of the sash
|
||||||
//
|
// this doesn't seem to be required anymore and it
|
||||||
// TODO: is this the right way to draw themed background?
|
// 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
|
gtk_paint_flat_box
|
||||||
(
|
(
|
||||||
win->m_wxwindow->style,
|
win->m_wxwindow->style,
|
||||||
@@ -315,12 +318,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
|
|||||||
GTK_SHADOW_NONE,
|
GTK_SHADOW_NONE,
|
||||||
NULL,
|
NULL,
|
||||||
win->m_wxwindow,
|
win->m_wxwindow,
|
||||||
(char *)"base", // const_cast
|
(char *)"viewportbin", // const_cast
|
||||||
erase_rect.x,
|
erase_rect.x,
|
||||||
erase_rect.y,
|
erase_rect.y,
|
||||||
erase_rect.width,
|
erase_rect.width,
|
||||||
erase_rect.height
|
erase_rect.height
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
gtk_paint_handle
|
gtk_paint_handle
|
||||||
|
@@ -303,10 +303,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
|
|||||||
erase_rect.width = w;
|
erase_rect.width = w;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we must erase everything first, otherwise the garbage from the old sash
|
#if 0
|
||||||
// is left when dragging it
|
// RR: After a correction to the orientation of the sash
|
||||||
//
|
// this doesn't seem to be required anymore and it
|
||||||
// TODO: is this the right way to draw themed background?
|
// 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
|
gtk_paint_flat_box
|
||||||
(
|
(
|
||||||
win->m_wxwindow->style,
|
win->m_wxwindow->style,
|
||||||
@@ -315,12 +318,13 @@ wxRendererGTK::DrawSplitterSash(wxWindow *win,
|
|||||||
GTK_SHADOW_NONE,
|
GTK_SHADOW_NONE,
|
||||||
NULL,
|
NULL,
|
||||||
win->m_wxwindow,
|
win->m_wxwindow,
|
||||||
(char *)"base", // const_cast
|
(char *)"viewportbin", // const_cast
|
||||||
erase_rect.x,
|
erase_rect.x,
|
||||||
erase_rect.y,
|
erase_rect.y,
|
||||||
erase_rect.width,
|
erase_rect.width,
|
||||||
erase_rect.height
|
erase_rect.height
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
gtk_paint_handle
|
gtk_paint_handle
|
||||||
|
Reference in New Issue
Block a user