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 650660 - Font text size scale updates too fast
Font text size scale updates too fast
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-05-20 12:24 UTC by Simon Danner
Modified: 2012-01-17 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Change widget for text-scaling-factor to SpinButton (2.74 KB, patch)
2012-01-17 12:26 UTC, Robin Stocker
committed Details | Review

Description Simon Danner 2011-05-20 12:24:55 UTC
When i change the scalingfactor, the slide widget becomes unusable, because gnome-tweak-tool semms to update the value after every step on the slider. It would be better if it would just update the value after a mouse release.
Comment 1 John Stowers 2011-05-20 12:34:47 UTC
GtkRange update-policy was removed in gtk+-3.0. There is no replacement unfortunately.

I would take a patch implementing a work-around though.
Comment 2 Jean-François Fortin Tam 2011-05-29 04:40:30 UTC
Doesn't the distinction between the "changed" and "value-changed" signals in http://developer.gnome.org/gtk3/stable/GtkAdjustment.html allow this kind of thing?
Comment 3 John Stowers 2011-05-29 04:44:39 UTC
(In reply to comment #2)
> Doesn't the distinction between the "changed" and "value-changed" signals in
> http://developer.gnome.org/gtk3/stable/GtkAdjustment.html allow this kind of
> thing?

Not AIUI. "changed" is emitted when any of the properties (value,min,max,step-size,page-size, etc) is changed. "value-changed" is only emitted when value is changed. 

I only change the "value" property, so using either/or doesnt help here.
Comment 4 Jean-François Fortin Tam 2011-05-29 19:13:35 UTC
An alternative approach might be to use a spinbutton widget instead of a slider... that way the user can enter precise values and they would be applied only when the widget focus changes or when the user presses Enter.

It would also allow more precision than 1 digit.
Comment 5 Robin Stocker 2012-01-17 12:26:59 UTC
Created attachment 205438 [details] [review]
Change widget for text-scaling-factor to SpinButton

Here's a patch for changing it to a SpinButton. It's against gnome-3-2 because master doesn't start on my machine.

Works much better than the slider (where I really had a hard time with setting it back to 1.0 after I changed it).
Comment 6 John Stowers 2012-01-17 19:54:05 UTC
Attachment 205438 [details] pushed as 89c320b - Change widget for text-scaling-factor to SpinButton