X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcb614b328a884ce6754d7a84bde03922b1da24f..d10e22fe8ad283f37b1809349028ffc282e393ce:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index a83c1c551e..11567f27fb 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3019,9 +3019,7 @@ void wxWindowGTK::DoGetClientSize( int *width, int *height ) const int dh = 0; if (m_hasScrolling) - { GetScrollbarWidth(m_widget, dw, dh); - } #ifndef __WXUNIVERSAL__ if (HasFlag(wxRAISED_BORDER) || HasFlag(wxSUNKEN_BORDER)) @@ -3824,11 +3822,9 @@ bool wxWindowGTK::DoIsExposed( int x, int y ) const bool wxWindowGTK::DoIsExposed( int x, int y, int w, int h ) const { -#if 0 if (GetLayoutDirection() == wxLayout_RightToLeft) return m_updateRegion.Contains(x-w, y, w, h) != wxOutRegion; else -#endif return m_updateRegion.Contains(x, y, w, h) != wxOutRegion; } @@ -3937,6 +3933,11 @@ void wxWindowGTK::SetDoubleBuffered( bool on ) gtk_widget_set_double_buffered( m_wxwindow, on ); } +bool wxWindowGTK::IsDoubleBuffered() const +{ + return GTK_WIDGET_DOUBLE_BUFFERED( m_wxwindow ); +} + void wxWindowGTK::ClearBackground() { wxCHECK_RET( m_widget != NULL, wxT("invalid window") );