silence warnings about unhandled enum value in switch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1641,7 +1641,10 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win)
|
|||||||
case GDK_SCROLL_LEFT:
|
case GDK_SCROLL_LEFT:
|
||||||
event.m_wheelRotation = -120;
|
event.m_wheelRotation = -120;
|
||||||
break;
|
break;
|
||||||
|
#if GTK_CHECK_VERSION(3,4,0)
|
||||||
|
case GDK_SCROLL_SMOOTH:
|
||||||
|
// TODO
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return false; // Unknown/unhandled direction
|
return false; // Unknown/unhandled direction
|
||||||
}
|
}
|
||||||
@@ -1658,6 +1661,11 @@ window_scroll_event(GtkWidget*, GdkEventScroll* gdk_event, wxWindow* win)
|
|||||||
case GDK_SCROLL_RIGHT:
|
case GDK_SCROLL_RIGHT:
|
||||||
event.m_wheelAxis = wxMOUSE_WHEEL_HORIZONTAL;
|
event.m_wheelAxis = wxMOUSE_WHEEL_HORIZONTAL;
|
||||||
break;
|
break;
|
||||||
|
#if GTK_CHECK_VERSION(3,4,0)
|
||||||
|
case GDK_SCROLL_SMOOTH:
|
||||||
|
// TODO
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (win->GTKProcessEvent(event))
|
if (win->GTKProcessEvent(event))
|
||||||
|
Reference in New Issue
Block a user