From 536aa13e88b4afee3cb67d8dc7d71cec51601158 Mon Sep 17 00:00:00 2001 From: Dieter Verfaillie Date: Wed, 2 Mar 2011 17:58:16 +0100 Subject: reference: pygtk-gtkscale.xml: add missing methods --- docs/reference/pygtk-gtkscale.xml | 66 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) (limited to 'docs') diff --git a/docs/reference/pygtk-gtkscale.xml b/docs/reference/pygtk-gtkscale.xml index ed481a38..0a748be1 100644 --- a/docs/reference/pygtk-gtkscale.xml +++ b/docs/reference/pygtk-gtkscale.xml @@ -56,6 +56,17 @@ linkend="method-gtkscale--get-layout">get_layout linkend="method-gtkscale--get-layout-offsets">get_layout_offsets + + + add_mark + value + position + markup + + + clear_marks + + @@ -409,6 +420,61 @@ function or pango.SCALE. If the "draw-value" property is + + gtk.Scale.add_mark + + + add_mark + value + position + markup + + + + value : + the value at which the mark is placed, must be between the lower and upper limits of the scales' adjustment. + + + position : + where to draw the mark. For a horizontal scale, gtk.POS_TOP is drawn above the scale, + anything else below. For a vertical scale, gtk.POS_LEFT is drawn to the left of the scale, anything else + to the right. + + + markup : + text to be shown at the mark, using Pango markup, or None. + + + + + This method is available in PyGTK 2.16 and above. + + + The add_mark() method adds a mark at value. + A mark is indicated visually by drawing a tick mark next to the scale, and GTK+ + makes it easy for the user to position the scale exactly at the marks value. + If markup is not None, text is shown next to the tick mark. + To remove marks from a scale, use clear_marks(). + + + + + gtk.Scale.clear_marks + + + clear_marks + + + + + This method is available in PyGTK 2.16 and above. + + + The clear_marks() method removes any marks that have been + added with add_mark(). + + + -- cgit v1.2.1