]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/scrolbar.cpp
Fixing notebook 'flashing' bug where the WebView would flash while not visible.
[wxWidgets.git] / 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;