~ubuntu-branches/ubuntu/precise/gtk+2.0/precise-updates

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkScale.html

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2011-12-01 11:40:06 UTC
  • mfrom: (1.14.11)
  • Revision ID: package-import@ubuntu.com-20111201114006-nrmf6qu3pg512veo
Tags: 2.24.8-0ubuntu1
* New upstream release 
  - gtkfilechooser should be more robust to malformed URIs
    in .gtk-bookmarks (LP: #189494)
* debian/patches/010_make_bg_changes_queue_repaint.patch
  - dropped it introduces performance regressions in some gtk2 
    apps (LP: #889019)
* 101_filechooser.patch, 000git_file_chooser.patch: dropped, upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="AbstractObjects.html" title="Abstract Base Classes">
9
9
<link rel="prev" href="GtkRange.html" title="GtkRange">
10
10
<link rel="next" href="GtkScrollbar.html" title="GtkScrollbar">
11
 
<meta name="generator" content="GTK-Doc V1.17.1 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
52
52
 
53
53
struct              <a class="link" href="GtkScale.html#GtkScale-struct" title="struct GtkScale">GtkScale</a>;
54
54
<span class="returnvalue">void</span>                <a class="link" href="GtkScale.html#gtk-scale-set-digits" title="gtk_scale_set_digits ()">gtk_scale_set_digits</a>                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
55
 
                                                         <em class="parameter"><code><span class="type">gint</span> digits</code></em>);
 
55
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> digits</code></em>);
56
56
<span class="returnvalue">void</span>                <a class="link" href="GtkScale.html#gtk-scale-set-draw-value" title="gtk_scale_set_draw_value ()">gtk_scale_set_draw_value</a>            (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
57
 
                                                         <em class="parameter"><code><span class="type">gboolean</span> draw_value</code></em>);
 
57
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> draw_value</code></em>);
58
58
<span class="returnvalue">void</span>                <a class="link" href="GtkScale.html#gtk-scale-set-value-pos" title="gtk_scale_set_value_pos ()">gtk_scale_set_value_pos</a>             (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
59
59
                                                         <em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> pos</code></em>);
60
 
<span class="returnvalue">gint</span>                <a class="link" href="GtkScale.html#gtk-scale-get-digits" title="gtk_scale_get_digits ()">gtk_scale_get_digits</a>                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
61
 
<span class="returnvalue">gboolean</span>            <a class="link" href="GtkScale.html#gtk-scale-get-draw-value" title="gtk_scale_get_draw_value ()">gtk_scale_get_draw_value</a>            (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
 
60
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkScale.html#gtk-scale-get-digits" title="gtk_scale_get_digits ()">gtk_scale_get_digits</a>                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
 
61
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkScale.html#gtk-scale-get-draw-value" title="gtk_scale_get_draw_value ()">gtk_scale_get_draw_value</a>            (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
62
62
<a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="returnvalue">GtkPositionType</span></a>     <a class="link" href="GtkScale.html#gtk-scale-get-value-pos" title="gtk_scale_get_value_pos ()">gtk_scale_get_value_pos</a>             (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
63
 
<span class="returnvalue">PangoLayout</span> *       <a class="link" href="GtkScale.html#gtk-scale-get-layout" title="gtk_scale_get_layout ()">gtk_scale_get_layout</a>                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
 
63
<a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *       <a class="link" href="GtkScale.html#gtk-scale-get-layout" title="gtk_scale_get_layout ()">gtk_scale_get_layout</a>                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
64
64
<span class="returnvalue">void</span>                <a class="link" href="GtkScale.html#gtk-scale-get-layout-offsets" title="gtk_scale_get_layout_offsets ()">gtk_scale_get_layout_offsets</a>        (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
65
 
                                                         <em class="parameter"><code><span class="type">gint</span> *x</code></em>,
66
 
                                                         <em class="parameter"><code><span class="type">gint</span> *y</code></em>);
 
65
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x</code></em>,
 
66
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>);
67
67
<span class="returnvalue">void</span>                <a class="link" href="GtkScale.html#gtk-scale-add-mark" title="gtk_scale_add_mark ()">gtk_scale_add_mark</a>                  (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
68
 
                                                         <em class="parameter"><code><span class="type">gdouble</span> value</code></em>,
 
68
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>,
69
69
                                                         <em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> position</code></em>,
70
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *markup</code></em>);
 
70
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *markup</code></em>);
71
71
<span class="returnvalue">void</span>                <a class="link" href="GtkScale.html#gtk-scale-clear-marks" title="gtk_scale_clear_marks ()">gtk_scale_clear_marks</a>               (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);
72
72
</pre>
73
73
</div>
74
74
<div class="refsect1">
75
75
<a name="GtkScale.object-hierarchy"></a><h2>Object Hierarchy</h2>
76
76
<pre class="synopsis">
77
 
  GObject
78
 
   +----GInitiallyUnowned
 
77
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
 
78
   +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
79
79
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
80
80
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
81
81
                     +----<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a>
93
93
<div class="refsect1">
94
94
<a name="GtkScale.properties"></a><h2>Properties</h2>
95
95
<pre class="synopsis">
96
 
  "<a class="link" href="GtkScale.html#GtkScale--digits" title='The "digits" property'>digits</a>"                   <span class="type">gint</span>                  : Read / Write
97
 
  "<a class="link" href="GtkScale.html#GtkScale--draw-value" title='The "draw-value" property'>draw-value</a>"               <span class="type">gboolean</span>              : Read / Write
 
96
  "<a class="link" href="GtkScale.html#GtkScale--digits" title='The "digits" property'>digits</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
 
97
  "<a class="link" href="GtkScale.html#GtkScale--draw-value" title='The "draw-value" property'>draw-value</a>"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
98
98
  "<a class="link" href="GtkScale.html#GtkScale--value-pos" title='The "value-pos" property'>value-pos</a>"                <a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a>       : Read / Write
99
99
</pre>
100
100
</div>
101
101
<div class="refsect1">
102
102
<a name="GtkScale.style-properties"></a><h2>Style Properties</h2>
103
103
<pre class="synopsis">
104
 
  "<a class="link" href="GtkScale.html#GtkScale--s-slider-length" title='The "slider-length" style property'>slider-length</a>"            <span class="type">gint</span>                  : Read
105
 
  "<a class="link" href="GtkScale.html#GtkScale--s-value-spacing" title='The "value-spacing" style property'>value-spacing</a>"            <span class="type">gint</span>                  : Read
 
104
  "<a class="link" href="GtkScale.html#GtkScale--s-slider-length" title='The "slider-length" style property'>slider-length</a>"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
 
105
  "<a class="link" href="GtkScale.html#GtkScale--s-value-spacing" title='The "value-spacing" style property'>value-spacing</a>"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read
106
106
</pre>
107
107
</div>
108
108
<div class="refsect1">
109
109
<a name="GtkScale.signals"></a><h2>Signals</h2>
110
110
<pre class="synopsis">
111
 
  "<a class="link" href="GtkScale.html#GtkScale-format-value" title='The "format-value" signal'>format-value</a>"                                   : <code class="literal">Run Last</code>
 
111
  "<a class="link" href="GtkScale.html#GtkScale-format-value" title='The "format-value" signal'>format-value</a>"                                   : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
112
112
</pre>
113
113
</div>
114
114
<div class="refsect1">
152
152
<div class="refsect2">
153
153
<a name="gtk-scale-set-digits"></a><h3>gtk_scale_set_digits ()</h3>
154
154
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_scale_set_digits                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
155
 
                                                         <em class="parameter"><code><span class="type">gint</span> digits</code></em>);</pre>
 
155
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> digits</code></em>);</pre>
156
156
<p>
157
157
Sets the number of decimal places that are displayed in the value.
158
158
Also causes the value of the adjustment to be rounded off to this
178
178
<div class="refsect2">
179
179
<a name="gtk-scale-set-draw-value"></a><h3>gtk_scale_set_draw_value ()</h3>
180
180
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_scale_set_draw_value            (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
181
 
                                                         <em class="parameter"><code><span class="type">gboolean</span> draw_value</code></em>);</pre>
 
181
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> draw_value</code></em>);</pre>
182
182
<p>
183
183
Specifies whether the current value is displayed as a string next 
184
184
to the slider.
194
194
<tr>
195
195
<td><p><span class="term"><em class="parameter"><code>draw_value</code></em> :</span></p></td>
196
196
<td>
197
 
<code class="literal">TRUE</code> to draw the value</td>
 
197
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to draw the value</td>
198
198
</tr>
199
199
</tbody>
200
200
</table></div>
225
225
<hr>
226
226
<div class="refsect2">
227
227
<a name="gtk-scale-get-digits"></a><h3>gtk_scale_get_digits ()</h3>
228
 
<pre class="programlisting"><span class="returnvalue">gint</span>                gtk_scale_get_digits                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
 
228
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_scale_get_digits                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
229
229
<p>
230
230
Gets the number of decimal places that are displayed in the value.
231
231
</p>
247
247
<hr>
248
248
<div class="refsect2">
249
249
<a name="gtk-scale-get-draw-value"></a><h3>gtk_scale_get_draw_value ()</h3>
250
 
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gtk_scale_get_draw_value            (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
 
250
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_scale_get_draw_value            (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
251
251
<p>
252
252
Returns whether the current value is displayed as a string 
253
253
next to the slider.
292
292
<hr>
293
293
<div class="refsect2">
294
294
<a name="gtk-scale-get-layout"></a><h3>gtk_scale_get_layout ()</h3>
295
 
<pre class="programlisting"><span class="returnvalue">PangoLayout</span> *       gtk_scale_get_layout                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
 
295
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="returnvalue">PangoLayout</span></a> *       gtk_scale_get_layout                (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>);</pre>
296
296
<p>
297
 
Gets the <span class="type">PangoLayout</span> used to display the scale. The returned
 
297
Gets the <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> used to display the scale. The returned
298
298
object is owned by the scale so does not need to be freed by
299
299
the caller.
300
300
</p>
308
308
</tr>
309
309
<tr>
310
310
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
311
 
<td>the <span class="type">PangoLayout</span> for this scale,
312
 
or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GtkScale.html#GtkScale--draw-value" title='The "draw-value" property'><span class="type">"draw-value"</span></a> property is <code class="literal">FALSE</code>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
 
311
<td>the <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> for this scale,
 
312
or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the <a class="link" href="GtkScale.html#GtkScale--draw-value" title='The "draw-value" property'><span class="type">"draw-value"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
313
313
</td>
314
314
</tr>
315
315
</tbody>
320
320
<div class="refsect2">
321
321
<a name="gtk-scale-get-layout-offsets"></a><h3>gtk_scale_get_layout_offsets ()</h3>
322
322
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_scale_get_layout_offsets        (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
323
 
                                                         <em class="parameter"><code><span class="type">gint</span> *x</code></em>,
324
 
                                                         <em class="parameter"><code><span class="type">gint</span> *y</code></em>);</pre>
 
323
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *x</code></em>,
 
324
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>);</pre>
325
325
<p>
326
326
Obtains the coordinates where the scale will draw the 
327
 
<span class="type">PangoLayout</span> representing the text in the scale. Remember
328
 
when using the <span class="type">PangoLayout</span> function you need to convert to
329
 
and from pixels using <code class="function">PANGO_PIXELS()</code> or <span class="type">PANGO_SCALE</span>. 
 
327
<a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> representing the text in the scale. Remember
 
328
when using the <a href="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> function you need to convert to
 
329
and from pixels using <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PANGO-PIXELS:CAPS"><code class="function">PANGO_PIXELS()</code></a> or <a href="/usr/share/gtk-doc/html/pango/pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><span class="type">PANGO_SCALE</span></a>. 
330
330
</p>
331
331
<p>
332
 
If the <a class="link" href="GtkScale.html#GtkScale--draw-value" title='The "draw-value" property'><span class="type">"draw-value"</span></a> property is <code class="literal">FALSE</code>, the return 
 
332
If the <a class="link" href="GtkScale.html#GtkScale--draw-value" title='The "draw-value" property'><span class="type">"draw-value"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the return 
333
333
values are undefined.
334
334
</p>
335
335
<div class="variablelist"><table border="0">
342
342
</tr>
343
343
<tr>
344
344
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
345
 
<td>location to store X offset of layout, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
345
<td>location to store X offset of layout, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
346
346
</td>
347
347
</tr>
348
348
<tr>
349
349
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
350
 
<td>location to store Y offset of layout, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
350
<td>location to store Y offset of layout, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
351
351
</td>
352
352
</tr>
353
353
</tbody>
358
358
<div class="refsect2">
359
359
<a name="gtk-scale-add-mark"></a><h3>gtk_scale_add_mark ()</h3>
360
360
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_scale_add_mark                  (<em class="parameter"><code><a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale</code></em>,
361
 
                                                         <em class="parameter"><code><span class="type">gdouble</span> value</code></em>,
 
361
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> value</code></em>,
362
362
                                                         <em class="parameter"><code><a class="link" href="gtk-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> position</code></em>,
363
 
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *markup</code></em>);</pre>
 
363
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *markup</code></em>);</pre>
364
364
<p>
365
365
Adds a mark at <em class="parameter"><code>value</code></em>. 
366
366
</p>
370
370
marks value.
371
371
</p>
372
372
<p>
373
 
If <em class="parameter"><code>markup</code></em> is not <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>, text is shown next to the tick mark. 
 
373
If <em class="parameter"><code>markup</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, text is shown next to the tick mark. 
374
374
</p>
375
375
<p>
376
376
To remove marks from a scale, use <a class="link" href="GtkScale.html#gtk-scale-clear-marks" title="gtk_scale_clear_marks ()"><code class="function">gtk_scale_clear_marks()</code></a>.
397
397
</tr>
398
398
<tr>
399
399
<td><p><span class="term"><em class="parameter"><code>markup</code></em> :</span></p></td>
400
 
<td>Text to be shown at the mark, using Pango markup, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
 
400
<td>Text to be shown at the mark, using <a href="/usr/share/gtk-doc/html/pango/PangoMarkupFormat.html">Pango markup</a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
401
401
</td>
402
402
</tr>
403
403
</tbody>
426
426
<a name="GtkScale.property-details"></a><h2>Property Details</h2>
427
427
<div class="refsect2">
428
428
<a name="GtkScale--digits"></a><h3>The <code class="literal">"digits"</code> property</h3>
429
 
<pre class="programlisting">  "digits"                   <span class="type">gint</span>                  : Read / Write</pre>
 
429
<pre class="programlisting">  "digits"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
430
430
<p>The number of decimal places that are displayed in the value.</p>
431
431
<p>Allowed values: [G_MAXULONG,64]</p>
432
432
<p>Default value: 1</p>
434
434
<hr>
435
435
<div class="refsect2">
436
436
<a name="GtkScale--draw-value"></a><h3>The <code class="literal">"draw-value"</code> property</h3>
437
 
<pre class="programlisting">  "draw-value"               <span class="type">gboolean</span>              : Read / Write</pre>
 
437
<pre class="programlisting">  "draw-value"               <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
438
438
<p>Whether the current value is displayed as a string next to the slider.</p>
439
439
<p>Default value: TRUE</p>
440
440
</div>
450
450
<a name="GtkScale.style-property-details"></a><h2>Style Property Details</h2>
451
451
<div class="refsect2">
452
452
<a name="GtkScale--s-slider-length"></a><h3>The <code class="literal">"slider-length"</code> style property</h3>
453
 
<pre class="programlisting">  "slider-length"            <span class="type">gint</span>                  : Read</pre>
 
453
<pre class="programlisting">  "slider-length"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
454
454
<p>Length of scale's slider.</p>
455
455
<p>Allowed values: &gt;= 0</p>
456
456
<p>Default value: 31</p>
458
458
<hr>
459
459
<div class="refsect2">
460
460
<a name="GtkScale--s-value-spacing"></a><h3>The <code class="literal">"value-spacing"</code> style property</h3>
461
 
<pre class="programlisting">  "value-spacing"            <span class="type">gint</span>                  : Read</pre>
 
461
<pre class="programlisting">  "value-spacing"            <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read</pre>
462
462
<p>Space between value text and the slider/trough area.</p>
463
463
<p>Allowed values: &gt;= 0</p>
464
464
<p>Default value: 2</p>
468
468
<a name="GtkScale.signal-details"></a><h2>Signal Details</h2>
469
469
<div class="refsect2">
470
470
<a name="GtkScale-format-value"></a><h3>The <code class="literal">"format-value"</code> signal</h3>
471
 
<pre class="programlisting"><span class="returnvalue">gchar</span>*              user_function                      (<a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale,
472
 
                                                        <span class="type">gdouble</span>   value,
473
 
                                                        <span class="type">gpointer</span>  user_data)      : <code class="literal">Run Last</code></pre>
 
471
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a>*              user_function                      (<a class="link" href="GtkScale.html" title="GtkScale"><span class="type">GtkScale</span></a> *scale,
 
472
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>   value,
 
473
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>  user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
474
474
<p>
475
475
Signal which allows you to change how the scale value is displayed.
476
476
Connect a signal handler which returns an allocated string representing
491
491
5
492
492
6
493
493
7</pre></td>
494
 
        <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> gchar</span><span class="symbol">*</span>
 
494
        <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a></span><span class="symbol">*</span>
495
495
<span class="function">format_value_callback</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkScale</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">scale</span><span class="symbol">,</span>
496
496
<span class="normal">                       </span><span class="usertype">gdouble</span><span class="normal">   value</span><span class="symbol">)</span>
497
497
<span class="cbracket">{</span>
498
 
<span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="function">g_strdup_printf</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"--&gt;%0.*g&lt;--"</span><span class="symbol">,</span>
 
498
<span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"--&gt;%0.*g&lt;--"</span><span class="symbol">,</span>
499
499
<span class="normal">                          </span><span class="function"><a href="GtkScale.html#gtk-scale-get-digits">gtk_scale_get_digits</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">scale</span><span class="symbol">),</span><span class="normal"> value</span><span class="symbol">);</span>
500
500
<span class="normal"> </span><span class="cbracket">}</span></pre></td>
501
501
      </tr>
532
532
</div>
533
533
<div class="footer">
534
534
<hr>
535
 
          Generated by GTK-Doc V1.17.1</div>
 
535
          Generated by GTK-Doc V1.17</div>
536
536
</body>
537
537
</html>
 
 
b'\\ No newline at end of file'