git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31568
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int scroll_height, mouse_pos;
// get the mouse position when the click is done
- if (widget->orientation == GTK_ORIENTATION_VERTICAL)
+ if (win->HasFlag(wxSB_VERTICAL))
{
scroll_height = GTK_WIDGET(widget)->allocation.height - 16;
mouse_pos = (int)gdk_event->y;
int scroll_height, mouse_pos;
// get the mouse position when the click is done
- if (widget->orientation == GTK_ORIENTATION_VERTICAL)
+ if (win->HasFlag(wxSB_VERTICAL))
{
scroll_height = GTK_WIDGET(widget)->allocation.height - 16;
mouse_pos = (int)gdk_event->y;