X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1481968400c94128642815b6871724f118141cbc..4ff9366dc1332abc371902059b71ea7d59aa2055:/src/gtk/scrolbar.cpp diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 00ea880973..fcf9edc55e 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -57,8 +57,6 @@ extern "C" { static gboolean gtk_button_press_event(GtkRange*, GdkEventButton*, wxScrollBar* win) { - // don't need to install idle handler, its done from "event" signal - win->m_mouseButtonDown = true; return false; } @@ -98,8 +96,6 @@ extern "C" { static gboolean gtk_button_release_event(GtkRange* range, GdkEventButton*, wxScrollBar* win) { - // don't need to install idle handler, its done from "event" signal - win->m_mouseButtonDown = false; // If thumb tracking if (win->m_isScrolling) @@ -133,9 +129,6 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name ) { - m_needParent = true; - m_acceptsFocus = true; - if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, validator, name )) { @@ -249,7 +242,7 @@ void wxScrollBar::SetRange(int range) GdkWindow *wxScrollBar::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const { - return GTK_WIDGET(GTK_RANGE(m_widget))->window; + return m_widget->window; } // static