X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f90566f5c386e6e5d80deecad9052ec53a0394ba..08a15c0d899daad0ff8cc2ed4c06ff78b8ec3cc3:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 948e88e8b3..bad1ac7648 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1975,7 +1975,8 @@ static void gtk_window_vscroll_callback( GtkAdjustment *adjust, win->m_oldVerticalPos = adjust->value; - wxEventType command = GtkScrollWinTypeToWx(GET_SCROLL_TYPE(win->m_widget)); + GtkScrolledWindow *sw = GTK_SCROLLED_WINDOW(win->m_widget); + wxEventType command = GtkScrollWinTypeToWx(GET_SCROLL_TYPE(sw->vscrollbar)); int value = (int)(adjust->value+0.5); @@ -2003,7 +2004,8 @@ static void gtk_window_hscroll_callback( GtkAdjustment *adjust, float diff = adjust->value - win->m_oldHorizontalPos; if (fabs(diff) < 0.2) return; - wxEventType command = GtkScrollWinTypeToWx(GET_SCROLL_TYPE(win->m_widget)); + GtkScrolledWindow *sw = GTK_SCROLLED_WINDOW(win->m_widget); + wxEventType command = GtkScrollWinTypeToWx(GET_SCROLL_TYPE(sw->hscrollbar)); win->m_oldHorizontalPos = adjust->value; @@ -2524,6 +2526,9 @@ wxWindowGTK::~wxWindowGTK() if (g_activeFrame == this) g_activeFrame = NULL; + if ( g_delayedFocus == this ) + g_delayedFocus = NULL; + m_isBeingDeleted = TRUE; m_hasVMT = FALSE; @@ -3258,7 +3263,7 @@ void wxWindowGTK::SetFocus() } } - (void)DoSendFocusEvents(this); + (void)DoSendFocusEvents((wxWindow*)this); } bool wxWindowGTK::AcceptsFocus() const @@ -3480,7 +3485,7 @@ void wxWindowGTK::GtkSendPaintEvents() while (parent && !parent->IsTopLevel()) parent = parent->GetParent(); if (!parent) - parent = this; + parent = (wxWindow*)this; wxRegionIterator upd( m_updateRegion ); while (upd) @@ -4325,3 +4330,4 @@ void wxWinModule::OnExit() gdk_gc_unref( g_eraseGC ); } +// vi:sts=4:sw=4:et