This file is indexed.

/usr/share/gtk-doc/html/libgwyapp/GwyDataChooser.html is in libgwyddion20-doc 2.34-3ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gwyddion Application Library Reference Manual: GwyDataChooser</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Gwyddion Application Library Reference Manual">
<link rel="up" href="index.html" title="Gwyddion Application Library Reference Manual">
<link rel="prev" href="libgwyapp-data-browser.html" title="data-browser">
<link rel="next" href="libgwyapp-settings.html" title="settings">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left">
<a href="#" class="shortcut">Top</a>
                   | 
                  <a href="#GwyDataChooser.description" class="shortcut">Description</a>
                   | 
                  <a href="#GwyDataChooser.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GwyDataChooser.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="libgwyapp-data-browser.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgwyapp-settings.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GwyDataChooser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GwyDataChooser.top_of_page"></a>GwyDataChooser</span></h2>
<p>GwyDataChooser — Data object choosers</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GwyDataChooser.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;app/gwyapp.h&gt;

<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (<a class="link" href="GwyDataChooser.html#GwyDataChooserFilterFunc" title="GwyDataChooserFilterFunc ()">*GwyDataChooserFilterFunc</a>)         (<em class="parameter"><code><a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> *data</code></em>,
                                                         <em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id</code></em>,
                                                         <em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GwyDataChooser.html#gwy-data-chooser-new-channels" title="gwy_data_chooser_new_channels ()">gwy_data_chooser_new_channels</a>       (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GwyDataChooser.html#gwy-data-chooser-new-volumes" title="gwy_data_chooser_new_volumes ()">gwy_data_chooser_new_volumes</a>        (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GwyDataChooser.html#gwy-data-chooser-set-active" title="gwy_data_chooser_set_active ()">gwy_data_chooser_set_active</a>         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code><a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> *data</code></em>,
                                                         <em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id</code></em>);
<a href="../libgwyddion/GwyContainer.html"><span class="returnvalue">GwyContainer</span></a> *      <a class="link" href="GwyDataChooser.html#gwy-data-chooser-get-active" title="gwy_data_chooser_get_active ()">gwy_data_chooser_get_active</a>         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *id</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GwyDataChooser.html#gwy-data-chooser-set-filter" title="gwy_data_chooser_set_filter ()">gwy_data_chooser_set_filter</a>         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GwyDataChooser.html#GwyDataChooserFilterFunc" title="GwyDataChooserFilterFunc ()"><span class="type">GwyDataChooserFilterFunc</span></a> filter</code></em>,
                                                         <em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                                         <em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gtk/gtk2-Types.html#GtkDestroyNotify"><span class="type">GtkDestroyNotify</span></a> destroy</code></em>);
const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="GwyDataChooser.html#gwy-data-chooser-get-none" title="gwy_data_chooser_get_none ()">gwy_data_chooser_get_none</a>           (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GwyDataChooser.html#gwy-data-chooser-set-none" title="gwy_data_chooser_set_none ()">gwy_data_chooser_set_none</a>           (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *none</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> *      <a class="link" href="GwyDataChooser.html#gwy-data-chooser-get-filter" title="gwy_data_chooser_get_filter ()">gwy_data_chooser_get_filter</a>         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>);
                    <a class="link" href="GwyDataChooser.html#GwyDataChooser-struct" title="GwyDataChooser">GwyDataChooser</a>;
                    <a class="link" href="GwyDataChooser.html#GwyDataChooserClass" title="GwyDataChooserClass">GwyDataChooserClass</a>;
</pre>
</div>
<div class="refsect1">
<a name="GwyDataChooser.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a href="http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
         +----<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkObject.html">GtkObject</a>
               +----<a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html">GtkWidget</a>
                     +----<a href="/usr/share/gtk-doc/html/gtk3/GtkContainer.html">GtkContainer</a>
                           +----<a href="/usr/share/gtk-doc/html/gtk3/GtkBin.html">GtkBin</a>
                                 +----<a href="/usr/share/gtk-doc/html/gtk3/GtkComboBox.html">GtkComboBox</a>
                                       +----GwyDataChooser
</pre>
</div>
<div class="refsect1">
<a name="GwyDataChooser.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GwyDataChooser implements
 AtkImplementorIface,  <a href="/usr/share/gtk-doc/html/gtk3/GtkBuildable.html">GtkBuildable</a>,  <a href="/usr/share/gtk-doc/html/gtk3/GtkCellLayout.html">GtkCellLayout</a> and  <a href="/usr/share/gtk-doc/html/gtk3/GtkCellEditable.html">GtkCellEditable</a>.</p>
</div>
<div class="refsect1">
<a name="GwyDataChooser.description"></a><h2>Description</h2>
<p>
<a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> is an base data object chooser class.  Choosers for
particular data objects can be created with functions like
<a class="link" href="GwyDataChooser.html#gwy-data-chooser-new-channels" title="gwy_data_chooser_new_channels ()"><code class="function">gwy_data_chooser_new_channels()</code></a> or <a class="link" href="GwyDataChooser.html#gwy-data-chooser-new-volumes" title="gwy_data_chooser_new_volumes ()"><code class="function">gwy_data_chooser_new_volumes()</code></a> and then
manipulated through <a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> interface.
</p>
<p>
The widget type used to implement choosers is not a part of the interface
and may be subject of future changes.  In any case <a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> has
a <code class="code">"changed"</code> signal emitted when the selected item changes.
</p>
<p>
It is possible to offer only data objects matching some criteria.  For
example to offer only data fields compatible with another data field,
one can use:
</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">chooser</span><span class="symbol">;</span>
<span class="usertype">GwyDataField</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">model</span><span class="symbol">;</span>

<span class="normal">model </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">...;</span>
<span class="normal">chooser </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="#gwy-data-chooser-new-channels">gwy_data_chooser_new_channels</a></span><span class="symbol">();</span>
<span class="function"><a href="#gwy-data-chooser-set-filter">gwy_data_chooser_set_filter</a></span><span class="symbol">(</span><span class="function">GWY_DATA_CHOOSER</span><span class="symbol">(</span><span class="normal">chooser</span><span class="symbol">),</span>
<span class="normal">                            compatible_field_filter</span><span class="symbol">,</span><span class="normal"> model</span><span class="symbol">,</span>
<span class="normal">                            <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p>
where the filter function looks like
</p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
<span class="function">compatible_field_filter</span><span class="symbol">(</span><span class="usertype">GwyContainer</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">data</span><span class="symbol">,</span>
<span class="normal">                        </span><span class="usertype">gint</span><span class="normal"> id</span><span class="symbol">,</span>
<span class="normal">                        </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
<span class="cbracket">{</span>
<span class="normal">    </span><span class="usertype">GwyDataField</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">model</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">data_field</span><span class="symbol">;</span>
<span class="normal">    </span><span class="usertype">GQuark</span><span class="normal"> quark</span><span class="symbol">;</span>
<span class="normal">    </span>
<span class="normal">    quark </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="libgwyapp-data-browser.html#gwy-app-get-data-key-for-id">gwy_app_get_data_key_for_id</a></span><span class="symbol">(</span><span class="normal">id</span><span class="symbol">);</span>
<span class="normal">    data_field </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="../libgwyddion/GwyContainer.html#gwy-container-get-object">gwy_container_get_object</a></span><span class="symbol">(</span><span class="normal">data</span><span class="symbol">,</span><span class="normal"> quark</span><span class="symbol">);</span>
<span class="normal">    model </span><span class="symbol">=</span><span class="normal"> </span><span class="function">GWY_DATA_FIELD</span><span class="symbol">(</span><span class="normal">user_data</span><span class="symbol">);</span>
<span class="normal">    </span><span class="keyword">return</span><span class="normal"> </span><span class="symbol">!</span><span class="normal"><a href="../libgwyprocess/libgwyprocess-arithmetic.html#gwy-data-field-check-compatibility">gwy_data_field_check_compatibility</a></span>
<span class="normal">                         </span><span class="symbol">(</span><span class="normal">data_field</span><span class="symbol">,</span><span class="normal"> model</span><span class="symbol">,</span>
<span class="normal">                          <a href="../libgwyprocess/libgwyprocess-gwyprocessenums.html#GWY-DATA-COMPATIBILITY-RES:CAPS">GWY_DATA_COMPATIBILITY_RES</a></span>
<span class="normal">                          </span><span class="symbol">|</span><span class="normal"> <a href="../libgwyprocess/libgwyprocess-gwyprocessenums.html#GWY-DATA-COMPATIBILITY-REAL:CAPS">GWY_DATA_COMPATIBILITY_REAL</a></span>
<span class="normal">                          </span><span class="symbol">|</span><span class="normal"> <a href="../libgwyprocess/libgwyprocess-gwyprocessenums.html#GWY-DATA-COMPATIBILITY-LATERAL:CAPS">GWY_DATA_COMPATIBILITY_LATERAL</a></span>
<span class="normal">                          </span><span class="symbol">|</span><span class="normal"> <a href="../libgwyprocess/libgwyprocess-gwyprocessenums.html#GWY-DATA-COMPATIBILITY-VALUE:CAPS">GWY_DATA_COMPATIBILITY_VALUE</a></span><span class="symbol">);</span>
<span class="cbracket">}</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

<p>
</p>
</div>
<div class="refsect1">
<a name="GwyDataChooser.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GwyDataChooserFilterFunc"></a><h3>GwyDataChooserFilterFunc ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            (*GwyDataChooserFilterFunc)         (<em class="parameter"><code><a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> *data</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
The type of data chooser filter function.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>Data container.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>Id of particular data in <em class="parameter"><code>data</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>Data passed to <a class="link" href="GwyDataChooser.html#gwy-data-chooser-set-filter" title="gwy_data_chooser_set_filter ()"><code class="function">gwy_data_chooser_set_filter()</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to display this data in the chooser, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to omit it.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-new-channels"></a><h3>gwy_data_chooser_new_channels ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         gwy_data_chooser_new_channels       (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a data chooser for data channels.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new channel chooser.  Nothing may be assumed about the type and
properties of the returned widget as they can change in the future.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-new-volumes"></a><h3>gwy_data_chooser_new_volumes ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         gwy_data_chooser_new_volumes        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a data chooser for volume data.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new volume chooser.  Nothing may be assumed about the type and
properties of the returned widget as they can change in the future.</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.33</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-set-active"></a><h3>gwy_data_chooser_set_active ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gwy_data_chooser_set_active         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code><a href="../libgwyddion/GwyContainer.html"><span class="type">GwyContainer</span></a> *data</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id</code></em>);</pre>
<p>
Selects a data in a data chooser.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>A data chooser.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>Container to select, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to select none (if the chooser contains
`none' item).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>Id of particular data to select in <em class="parameter"><code>data</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if selected item was set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-get-active"></a><h3>gwy_data_chooser_get_active ()</h3>
<pre class="programlisting"><a href="../libgwyddion/GwyContainer.html"><span class="returnvalue">GwyContainer</span></a> *      gwy_data_chooser_get_active         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *id</code></em>);</pre>
<p>
Gets the selected item in a data chooser.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>A data chooser.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>Location to store selected data id to (may be <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The container selected data lies in, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if nothing is selected
or `none' item is selected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-set-filter"></a><h3>gwy_data_chooser_set_filter ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gwy_data_chooser_set_filter         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GwyDataChooser.html#GwyDataChooserFilterFunc" title="GwyDataChooserFilterFunc ()"><span class="type">GwyDataChooserFilterFunc</span></a> filter</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk2/gtk2-Types.html#GtkDestroyNotify"><span class="type">GtkDestroyNotify</span></a> destroy</code></em>);</pre>
<p>
Sets the filter applied to a data chooser.
</p>
<p>
The display of an item corresponding to no data is controlled by
<a class="link" href="GwyDataChooser.html#gwy-data-chooser-set-none" title="gwy_data_chooser_set_none ()"><code class="function">gwy_data_chooser_set_none()</code></a>, <em class="parameter"><code>filter</code></em> function is only called for real data.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>A data chooser.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
<td>The filter function.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>The data passed to <em class="parameter"><code>filter</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td>Destroy notifier of <em class="parameter"><code>user_data</code></em> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-get-none"></a><h3>gwy_data_chooser_get_none ()</h3>
<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gwy_data_chooser_get_none           (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>);</pre>
<p>
Gets the label of the item corresponding to no data.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>A data chooser.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The label corresponding to no data, an empty string for the default
label and <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the chooser does not display `none' item.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-set-none"></a><h3>gwy_data_chooser_set_none ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gwy_data_chooser_set_none           (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>,
                                                         <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *none</code></em>);</pre>
<p>
Sets the label of the item corresponding to no data.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>A data chooser.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>none</code></em> :</span></p></td>
<td>Label to use for item corresponding to no data. Passing <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>,
disables such an item, an empty string enables it with
the default label.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-data-chooser-get-filter"></a><h3>gwy_data_chooser_get_filter ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkTreeModel.html"><span class="returnvalue">GtkTreeModel</span></a> *      gwy_data_chooser_get_filter         (<em class="parameter"><code><a class="link" href="GwyDataChooser.html" title="GwyDataChooser"><span class="type">GwyDataChooser</span></a> *chooser</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataChooser-struct"></a><h3>GwyDataChooser</h3>
<pre class="programlisting">typedef struct _GwyDataChooser GwyDataChooser;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GwyDataChooserClass"></a><h3>GwyDataChooserClass</h3>
<pre class="programlisting">typedef struct _GwyDataChooserClass GwyDataChooserClass;</pre>
<p>
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>