Fixed compilation for GTK 1.2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-01-23 18:36:43 +00:00
parent 9718d66a76
commit 03ed1dae4f
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *widget,
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;