GNOME Bugzilla – Bug 746712
Range ignores the "inverted" property
Last modified: 2015-03-25 03:20:26 UTC
Created attachment 300233 [details] Screenshot visualizing the bug The GtkRange widget has a property called inverted which if set to true inverts the direction in which the slider moves. The property is however not checked when the range is drawn, it instead checks only if the direction of the widget is set to be right-to-left. The attached screenshot shows two GtkScale widgets, each with a range from 1 to 1000 and with the slider's position set to 250. The lower scale has the inverted property set. Notice that both scales are filled from the left side, which gives the impression that the lower scale is set to around 750 instead of 250.
Created attachment 300234 [details] [review] GtkRange: Check "inverted" property when drawing This patch makes the gtk_range_draw method call the should_invert function which properly checks if the range should be inverted instead of just checking if the direction has been set to right-to-left.
Thanks, seems correct. Attachment 300234 [details] pushed as 38f61dd - GtkRange: Check "inverted" property when drawing