remove unused mouse event and redundant checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2bca0d2033
commit
281644b4c1
@ -1612,11 +1612,7 @@ window_scroll_event_hscrollbar(GtkWidget*, GdkEventScroll* gdk_event, wxWindow*
|
||||
return false;
|
||||
}
|
||||
|
||||
wxMouseEvent event(wxEVT_MOUSEWHEEL);
|
||||
InitMouseEvent(win, event, gdk_event);
|
||||
|
||||
GtkRange *range = win->m_scrollBar[wxWindow::ScrollDir_Horz];
|
||||
if (!range) return FALSE;
|
||||
|
||||
if (range && gtk_widget_get_visible(GTK_WIDGET(range)))
|
||||
{
|
||||
@ -1659,7 +1655,6 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win)
|
||||
return TRUE;
|
||||
|
||||
GtkRange *range = win->m_scrollBar[wxWindow::ScrollDir_Vert];
|
||||
if (!range) return FALSE;
|
||||
|
||||
if (range && gtk_widget_get_visible(GTK_WIDGET(range)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user