From 03ed1dae4f2e68ac829adfb961b4379055ca1038 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 23 Jan 2005 18:36:43 +0000 Subject: [PATCH] Fixed compilation for GTK 1.2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/scrolbar.cpp | 2 +- src/gtk1/scrolbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index a2bb3082e8..28cf2350d8 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -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; diff --git a/src/gtk1/scrolbar.cpp b/src/gtk1/scrolbar.cpp index a2bb3082e8..28cf2350d8 100644 --- a/src/gtk1/scrolbar.cpp +++ b/src/gtk1/scrolbar.cpp @@ -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; -- 2.45.2