GNOME Bugzilla – Bug 582752
Allow discrete values in the scales
Last modified: 2016-01-30 05:42:33 UTC
This would require changes to GtkRange and GtkScale. I think this could be achieved by: - having a "discrete-values" property in GtkRange, which would change the snap calculation in update_slider_position() - adding accessors and setters in GtkScale to set the values, without drawing the marks. Do we want to either: - always show marks when discrete values are used - have the discrete stop positions be independent of the marks (separate API?) Something similar can be achieved by having the bounds set to 0/num_stops and set_digits to 0.
Isn't the bottom horizontal scale in gtk3-widget-factory showing exactly what you want ? Thats done by setting round-digits to 0