After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168791 - gtk_range ought to stop scrolling when the widget gets unmapped.
gtk_range ought to stop scrolling when the widget gets unmapped.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 168726
 
 
Reported: 2005-02-28 16:49 UTC by Allison Karlitskaya (desrt)
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch action (702 bytes, patch)
2005-02-28 16:50 UTC, Allison Karlitskaya (desrt)
needs-work Details | Review

Description Allison Karlitskaya (desrt) 2005-02-28 16:49:14 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.
Comment 1 Allison Karlitskaya (desrt) 2005-02-28 16:50:13 UTC
Created attachment 38059 [details] [review]
patch action

just a little one-liner to call stop_scrolling() from gtk_range_unmap().
Comment 2 Matthias Clasen 2005-03-17 21:16:13 UTC
We need to do the same fix for all similar cases of "scrolling" functionality:
notebook, spinbutton, pathbar. come to mind.
Comment 3 Matthias Clasen 2005-03-22 17:36:56 UTC
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)