]> Pileus Git - ~andy/gtk/commit
range: don't draw origin when the slider is invisible
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 27 Feb 2013 22:18:28 +0000 (17:18 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 27 Feb 2013 22:20:59 +0000 (17:20 -0500)
commitd434a9103c0fe2606b8aeeb1c629db9e9d1adbe6
treef49c5d960084df4885c18ebca3ce553f92afc064
parentbbfc8f9a9b84cc019dff0c23d52aac83beb6be64
range: don't draw origin when the slider is invisible

When the range of the GtkRange is zero (i.e. the upper and lower bounds
of the adjustment have the same value), don't use an origin to draw the
trough, as the slider will also be hidden, and the juncture between the
two sections of the trough will be visible.
gtk/gtkrange.c