Bug 565656 – Add marks to scales

Bug 565656 – Add marks to scales

        * gtk/gtkrange.[hc]: Add internal api to define 'stop values'
        that have a little resistance when dragging the slider over it.

        * gtk/gtk.symbols:
        * gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add
        a 'mark' to a scale, which will draws a tick, plus optionally
        some text, and makes the value a stop value.
        (gtk_scale_clear_values): Removes all marks.

        * tests/testscale.c: Test for marks on scales
        * tests/Makefile.am: Integrate it


svn path=/trunk/; revision=22149
This commit is contained in:
Matthias Clasen
2009-01-20 05:10:27 +00:00
parent b6b5237663
commit 26490a2dd7
10 changed files with 641 additions and 8 deletions

View File

@ -3229,6 +3229,8 @@ gtk_scale_get_draw_value
gtk_scale_get_value_pos
gtk_scale_get_layout
gtk_scale_get_layout_offsets
gtk_scale_add_mark
gtk_scale_clear_marks
<SUBSECTION Standard>
GTK_SCALE
GTK_IS_SCALE