37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="goa-Utilities.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"><span class="returnvalue">GtkWidget</span> * <a class="link" href="goa-Utilities.html#goa-util-add-heading" title="goa_util_add_heading ()">goa_util_add_heading</a> (<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
40
<pre class="synopsis"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="goa-Utilities.html#goa-util-add-heading" title="goa_util_add_heading ()">goa_util_add_heading</a> (<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
41
41
<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> *heading_text</code></em>);
42
<span class="returnvalue">GtkWidget</span> * <a class="link" href="goa-Utilities.html#goa-util-add-row-check-button-from-keyfile" title="goa_util_add_row_check_button_from_keyfile ()">goa_util_add_row_check_button_from_keyfile</a>
43
(<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
42
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="goa-Utilities.html#goa-util-add-row-check-button-from-keyfile" title="goa_util_add_row_check_button_from_keyfile ()">goa_util_add_row_check_button_from_keyfile</a>
43
(<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
44
44
<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
45
45
<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> *label_text</code></em>,
46
46
<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> *key</code></em>,
47
47
<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> *value_mnemonic</code></em>);
48
<span class="returnvalue">GtkWidget</span> * <a class="link" href="goa-Utilities.html#goa-util-add-row-editable-label-from-keyfile" title="goa_util_add_row_editable_label_from_keyfile ()">goa_util_add_row_editable_label_from_keyfile</a>
49
(<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
48
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="goa-Utilities.html#goa-util-add-row-editable-label-from-keyfile" title="goa_util_add_row_editable_label_from_keyfile ()">goa_util_add_row_editable_label_from_keyfile</a>
49
(<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
50
50
<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
51
51
<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> *label_text</code></em>,
52
52
<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> *key</code></em>,
53
53
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> editable</code></em>);
54
<span class="returnvalue">GtkWidget</span> * <a class="link" href="goa-Utilities.html#goa-util-add-row-label" title="goa_util_add_row_label ()">goa_util_add_row_label</a> (<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
54
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="goa-Utilities.html#goa-util-add-row-label" title="goa_util_add_row_label ()">goa_util_add_row_label</a> (<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
55
55
<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> *label_text</code></em>,
56
56
<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> *value_markup</code></em>);
57
<span class="returnvalue">GtkWidget</span> * <a class="link" href="goa-Utilities.html#goa-util-add-row-switch-from-keyfile" title="goa_util_add_row_switch_from_keyfile ()">goa_util_add_row_switch_from_keyfile</a>
58
(<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
57
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="goa-Utilities.html#goa-util-add-row-switch-from-keyfile" title="goa_util_add_row_switch_from_keyfile ()">goa_util_add_row_switch_from_keyfile</a>
58
(<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
59
59
<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
60
60
<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> *label_text</code></em>,
61
61
<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> *key</code></em>);
62
<span class="returnvalue">GtkWidget</span> * <a class="link" href="goa-Utilities.html#goa-util-add-row-widget" title="goa_util_add_row_widget ()">goa_util_add_row_widget</a> (<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
62
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="goa-Utilities.html#goa-util-add-row-widget" title="goa_util_add_row_widget ()">goa_util_add_row_widget</a> (<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
63
63
<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> *label_text</code></em>,
64
<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);
64
<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>);
65
65
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="goa-Utilities.html#goa-util-lookup-keyfile-boolean" title="goa_util_lookup_keyfile_boolean ()">goa_util_lookup_keyfile_boolean</a> (<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
66
66
<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> *key</code></em>);
67
67
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="goa-Utilities.html#goa-util-lookup-keyfile-string" title="goa_util_lookup_keyfile_string ()">goa_util_lookup_keyfile_string</a> (<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
106
106
<div class="refsect2">
107
107
<a name="goa-util-add-row-check-button-from-keyfile"></a><h3>goa_util_add_row_check_button_from_keyfile ()</h3>
108
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * goa_util_add_row_check_button_from_keyfile
109
(<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
108
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * goa_util_add_row_check_button_from_keyfile
109
(<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
110
110
<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
111
111
<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> *label_text</code></em>,
112
112
<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> *key</code></em>,
113
113
<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> *value_mnemonic</code></em>);</pre>
115
Adds a <span class="type">GtkCheckButton</span> to <em class="parameter"><code>table</code></em> that reads its value from the
115
Adds a <a href="http://developer.gnome.org/devel/gtk/GtkCheckButton.html"><span class="type">GtkCheckButton</span></a> to <em class="parameter"><code>table</code></em> that reads its value from the
116
116
key-value file for <em class="parameter"><code>object</code></em> using <em class="parameter"><code>key</code></em>. If it's toggled, the new
117
117
value is written back to the key-value file.
152
152
<div class="refsect2">
153
153
<a name="goa-util-add-row-editable-label-from-keyfile"></a><h3>goa_util_add_row_editable_label_from_keyfile ()</h3>
154
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * goa_util_add_row_editable_label_from_keyfile
155
(<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
154
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * goa_util_add_row_editable_label_from_keyfile
155
(<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
156
156
<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
157
157
<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> *label_text</code></em>,
158
158
<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> *key</code></em>,
231
231
<div class="refsect2">
232
232
<a name="goa-util-add-row-switch-from-keyfile"></a><h3>goa_util_add_row_switch_from_keyfile ()</h3>
233
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * goa_util_add_row_switch_from_keyfile
234
(<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
233
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * goa_util_add_row_switch_from_keyfile
234
(<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
235
235
<em class="parameter"><code><a class="link" href="GoaObject.html" title="GoaObject"><span class="type">GoaObject</span></a> *object</code></em>,
236
236
<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> *label_text</code></em>,
237
237
<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> *key</code></em>);</pre>
239
Adds a <span class="type">GtkSwitch</span> to <em class="parameter"><code>table</code></em> that reads its <span class="type">"active"</span> value
239
Adds a <a href="http://developer.gnome.org/devel/gtk/GtkSwitch.html"><span class="type">GtkSwitch</span></a> to <em class="parameter"><code>table</code></em> that reads its <a href="http://developer.gnome.org/devel/gtk/GtkSwitch.html#GtkSwitch--active"><span class="type">"active"</span></a> value
240
240
from the key-value file for <em class="parameter"><code>object</code></em> using <em class="parameter"><code>key</code></em>. If it's switched,
241
241
the new value is written back to the key-value file.
272
272
<div class="refsect2">
273
273
<a name="goa-util-add-row-widget"></a><h3>goa_util_add_row_widget ()</h3>
274
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * goa_util_add_row_widget (<em class="parameter"><code><span class="type">GtkTable</span> *table</code></em>,
274
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * goa_util_add_row_widget (<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTable.html"><span class="type">GtkTable</span></a> *table</code></em>,
275
275
<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> *label_text</code></em>,
276
<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>);</pre>
276
<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>);</pre>
278
278
Utility function to add <em class="parameter"><code>label_text</code></em> and <em class="parameter"><code>widget</code></em> to <em class="parameter"><code>table</code></em>.