static void gtk_scrolled_window_hscroll_callback( GtkAdjustment *adjust, SCROLLBAR_CBACK_ARG wxScrolledWindow *win ) { if (g_isIdle) wxapp_install_idle_handler(); if (g_blockEventsOnDrag) return; if (!win->m_hasVMT) return; win->GtkHScroll( adjust->value, GET_SCROLL_TYPE(GTK_SCROLLED_WINDOW(win->m_widget)->hscrollbar) ); }
static void gtk_slider_callback( GtkAdjustment *adjust, SCROLLBAR_CBACK_ARG wxSlider *win ) { if (g_isIdle) wxapp_install_idle_handler(); if (!win->m_hasVMT) return; if (g_blockEventsOnDrag) return; const double dvalue = adjust->value; const double diff = dvalue - win->m_oldPos; if ( AreSameAdjustValues(diff, 0) ) return; wxEventType evtType; evtType = GtkScrollTypeToWx(GET_SCROLL_TYPE(win->m_widget)); ProcessScrollEvent(win, evtType, dvalue); win->m_oldPos = dvalue; }