diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-05-02 21:02:12 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-05-03 12:15:28 -0400 |
commit | dc8f36e2549021a9f51291267d916b73f8d909df (patch) | |
tree | 53f4bf685132a70978c69e357210db7d53322b77 /docs/reference/gtk/tmpl | |
parent | 6e51533ec30e3745825656db028490fa18cb6105 (diff) | |
download | gtk+-dc8f36e2549021a9f51291267d916b73f8d909df.tar.gz |
Support scale marks in builder markup
Diffstat (limited to 'docs/reference/gtk/tmpl')
-rw-r--r-- | docs/reference/gtk/tmpl/gtkbuilder.sgml | 3 | ||||
-rw-r--r-- | docs/reference/gtk/tmpl/gtkscale.sgml | 24 |
2 files changed, 19 insertions, 8 deletions
diff --git a/docs/reference/gtk/tmpl/gtkbuilder.sgml b/docs/reference/gtk/tmpl/gtkbuilder.sgml index fe10530f82..8dc1eb54a7 100644 --- a/docs/reference/gtk/tmpl/gtkbuilder.sgml +++ b/docs/reference/gtk/tmpl/gtkbuilder.sgml @@ -229,7 +229,8 @@ respective objects, see <link linkend="GtkUIManager-BUILDER-UI">GtkUIManager</link>, <link linkend="GtkActionGroup-BUILDER-UI">GtkActionGroup</link>. <link linkend="GtkMenuItem-BUILDER-UI">GtkMenuItem</link>, -<link linkend="GtkAssistant-BUILDER-UI">GtkAssistant</link>. +<link linkend="GtkAssistant-BUILDER-UI">GtkAssistant</link>, +<link linkend="GtkScale-BUILDER-UI">GtkScale</link>. </para> </refsect2> diff --git a/docs/reference/gtk/tmpl/gtkscale.sgml b/docs/reference/gtk/tmpl/gtkscale.sgml index 3955e9f0ff..2ac9a18fe6 100644 --- a/docs/reference/gtk/tmpl/gtkscale.sgml +++ b/docs/reference/gtk/tmpl/gtkscale.sgml @@ -7,18 +7,28 @@ Base class for GtkHScale and GtkVScale <!-- ##### SECTION Long_Description ##### --> <para> A #GtkScale is a slider control used to select a numeric value. -To use it, you'll probably want to investigate the methods on +To use it, you'll probably want to investigate the methods on its base class, #GtkRange, in addition to the methods for #GtkScale itself. -To set the value of a scale, you would normally use gtk_range_set_value(). -To detect changes to the value, you would normally use the "value_changed" +To set the value of a scale, you would normally use gtk_range_set_value(). +To detect changes to the value, you would normally use the "value_changed" signal. </para> <para> The #GtkScale widget is an abstract class, used only for deriving the -subclasses #GtkHScale and #GtkVScale. To create a scale widget, +subclasses #GtkHScale and #GtkVScale. To create a scale widget, call gtk_hscale_new_with_range() or gtk_vscale_new_with_range(). </para> +<refsect2 id="GtkScale-BUILDER-UI"><title>GtkScale as GtkBuildable</title> +<para> +GtkScale supports a custom <marks> element, which +can contain multiple <mark> elements. The "value" and "position" +attributes have the same meaning as gtk_scale_add_mark() parameters of the +same name. If the element is not empty, its content is taken as the markup +to show at the mark. It can be translated with the usual "translatable and +"context" attributes. +</para> + <!-- ##### SECTION See_Also ##### --> <para> @@ -39,9 +49,9 @@ the accessor functions. </para> -@scale: -@value: -@Returns: +@scale: +@value: +@Returns: <!-- ##### ARG GtkScale:digits ##### --> <para> |