]> Pileus Git - ~andy/gtk/commit
added new style properties "trough-side-details" and
authorMichael Natterer <mitch@imendio.com>
Fri, 9 Jun 2006 13:48:07 +0000 (13:48 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Fri, 9 Jun 2006 13:48:07 +0000 (13:48 +0000)
commit4bb3d6441439e4d99255a3a08b39da7100ced953
tree742bea49df191b65a11c32f4ff14890a35cd07ee
parent423e21bd5930e43823ee8fc3c06a6c50f12b5c98
added new style properties "trough-side-details" and

2006-06-09  Michael Natterer  <mitch@imendio.com>

* gtk/gtkrange.c: added new style properties "trough-side-details"
and "draw-trough-under-steppers" and fixed the "stepper-spacing"
style property. Fixes bugs #342339 and #342249.

"draw-trough-under-steppers", when set to FALSE, starts trough
drawing next to the steppers instead of drawing the trough "below"
(around) the steppers. If "stepper-spacing" is set to any value
larger than zero, "draw-trough-under-steppers" is set to FALSE
automatically to avoid rendering an area that looks clickable but
isn't.

(gtk_range_calc_layout): honor draw-trough-under-steppers.
Don't reserve stepper-spacing on sides of the range that don't
have steppers.

(gtk_range_expose): changed drawing accordingly. Implement
"trough-side-details" which enables drawing of the upper and lower
parts of the trough with different details. This is useful for
theme engines which want to draw these parts differently.

(coord_to_value): correctly take all rendering options into
account. stepper-spacing > 0 caused jumping and otherwise
strangely behaving ranges before.

(other functions): changed accordingly.
ChangeLog
ChangeLog.pre-2-10
gtk/gtkrange.c