]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed compilation for GTK 1.2
authorRobert Roebling <robert@roebling.de>
Sun, 23 Jan 2005 18:36:43 +0000 (18:36 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 23 Jan 2005 18:36:43 +0000 (18:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/scrolbar.cpp
src/gtk1/scrolbar.cpp

index a2bb3082e8aa5bdf821ba506c8063eef11356293..28cf2350d8576cbefa97f1018a05269f7632c0ee 100644 (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;
index a2bb3082e8aa5bdf821ba506c8063eef11356293..28cf2350d8576cbefa97f1018a05269f7632c0ee 100644 (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;