GNOME Bugzilla – Bug 168791
gtk_range ought to stop scrolling when the widget gets unmapped.
Last modified: 2011-02-04 16:17:41 UTC
See bug 168726 for some more background. Attached is a small patch to unset the step timer when the widget gets unmapped. There is already similar code elsewhere in gtkrange.c (gtk_range_state_changed) that stops the step timer if the widget changes state to being insensitive.
Created attachment 38059 [details] [review] patch action just a little one-liner to call stop_scrolling() from gtk_range_unmap().
We need to do the same fix for all similar cases of "scrolling" functionality: notebook, spinbutton, pathbar. come to mind.
2005-03-22 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpathbar.c (gtk_path_bar_unmap): * gtk/gtkspinbutton.c (gtk_spin_button_unmap): * gtk/gtknotebook.c (gtk_notebook_unmap): * gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when the widget is unmapped. (#168791, Ryan Lortie)