X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40e5ebbf98728d627e4d3c9e3a57f28f5bb8fcb9..20a0e99964951da1c54abf11f6dd7cd2925b8b0e:/src/gtk/scrolbar.cpp diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 07716cf86a..dc05a81b0a 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -199,13 +199,13 @@ void wxScrollBar::SetThumbPosition( int viewStart ) m_scrollPos[i] = adj->value = viewStart; - g_signal_handlers_disconnect_by_func( m_widget, - (gpointer)gtk_value_changed, this); + g_signal_handlers_block_by_func(m_widget, + (gpointer)gtk_value_changed, this); gtk_adjustment_value_changed(adj); - - g_signal_connect_after(m_widget, "value_changed", - G_CALLBACK(gtk_value_changed), this); + + g_signal_handlers_unblock_by_func(m_widget, + (gpointer)gtk_value_changed, this); } }