46
46
<div class="refsynopsisdiv">
47
47
<a name="ESourceSelector.synopsis"></a><h2>Synopsis</h2>
48
48
<pre class="synopsis">struct <a class="link" href="ESourceSelector.html#ESourceSelector-struct" title="struct ESourceSelector">ESourceSelector</a>;
49
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="ESourceSelector.html#e-source-selector-new" title="e_source_selector_new ()">e_source_selector_new</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="type">ESourceList</span></a> *list</code></em>);
50
<a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="returnvalue">ESourceList</span></a> * <a class="link" href="ESourceSelector.html#e-source-selector-get-source-list" title="e_source_selector_get_source_list ()">e_source_selector_get_source_list</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
49
<span class="returnvalue">GtkWidget</span> * <a class="link" href="ESourceSelector.html#e-source-selector-new" title="e_source_selector_new ()">e_source_selector_new</a> (<em class="parameter"><code><span class="type">ESourceRegistry</span> *registry</code></em>,
50
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);
51
<span class="returnvalue">ESourceRegistry</span> * <a class="link" href="ESourceSelector.html#e-source-selector-get-registry" title="e_source_selector_get_registry ()">e_source_selector_get_registry</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
52
const <span class="returnvalue">gchar</span> * <a class="link" href="ESourceSelector.html#e-source-selector-get-extension-name" title="e_source_selector_get_extension_name ()">e_source_selector_get_extension_name</a>
53
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
54
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceSelector.html#e-source-selector-get-show-colors" title="e_source_selector_get_show_colors ()">e_source_selector_get_show_colors</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
55
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-set-show-colors" title="e_source_selector_set_show_colors ()">e_source_selector_set_show_colors</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
56
<em class="parameter"><code><span class="type">gboolean</span> show_colors</code></em>);
57
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceSelector.html#e-source-selector-get-show-toggles" title="e_source_selector_get_show_toggles ()">e_source_selector_get_show_toggles</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
58
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-set-show-toggles" title="e_source_selector_set_show_toggles ()">e_source_selector_set_show_toggles</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
59
<em class="parameter"><code><span class="type">gboolean</span> show_toggles</code></em>);
51
60
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-select-source" title="e_source_selector_select_source ()">e_source_selector_select_source</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
52
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *source</code></em>);
61
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);
53
62
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-unselect-source" title="e_source_selector_unselect_source ()">e_source_selector_unselect_source</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
54
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *source</code></em>);
63
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);
55
64
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-select-exclusive" title="e_source_selector_select_exclusive ()">e_source_selector_select_exclusive</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
56
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *source</code></em>);
57
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceSelector.html#e-source-selector-source-is-selected" title="e_source_selector_source_is_selected ()">e_source_selector_source_is_selected</a>
65
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);
66
<span class="returnvalue">gboolean</span> <a class="link" href="ESourceSelector.html#e-source-selector-source-is-selected" title="e_source_selector_source_is_selected ()">e_source_selector_source_is_selected</a>
58
67
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
59
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *source</code></em>);
60
<a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> * <a class="link" href="ESourceSelector.html#e-source-selector-get-selection" title="e_source_selector_get_selection ()">e_source_selector_get_selection</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
61
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-free-selection" title="e_source_selector_free_selection ()">e_source_selector_free_selection</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *list</code></em>);
62
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-show-selection" title="e_source_selector_show_selection ()">e_source_selector_show_selection</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show</code></em>);
64
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="ESourceSelector.html#e-source-selector-selection-shown" title="e_source_selector_selection_shown ()">e_source_selector_selection_shown</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
68
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);
69
<span class="returnvalue">GSList</span> * <a class="link" href="ESourceSelector.html#e-source-selector-get-selection" title="e_source_selector_get_selection ()">e_source_selector_get_selection</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
70
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-free-selection" title="e_source_selector_free_selection ()">e_source_selector_free_selection</a> (<em class="parameter"><code><span class="type">GSList</span> *list</code></em>);
65
71
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-set-select-new" title="e_source_selector_set_select_new ()">e_source_selector_set_select_new</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state</code></em>);
72
<em class="parameter"><code><span class="type">gboolean</span> state</code></em>);
67
73
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-edit-primary-selection" title="e_source_selector_edit_primary_selection ()">e_source_selector_edit_primary_selection</a>
68
74
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
69
<a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="returnvalue">ESource</span></a> * <a class="link" href="ESourceSelector.html#e-source-selector-get-primary-selection" title="e_source_selector_get_primary_selection ()">e_source_selector_get_primary_selection</a>
75
<span class="returnvalue">ESource</span> * <a class="link" href="ESourceSelector.html#e-source-selector-ref-primary-selection" title="e_source_selector_ref_primary_selection ()">e_source_selector_ref_primary_selection</a>
70
76
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
71
77
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-set-primary-selection" title="e_source_selector_set_primary_selection ()">e_source_selector_set_primary_selection</a>
72
78
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
73
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *source</code></em>);
74
<a href="/usr/share/gtk-doc/html/libedataserver/ESourceGroup.html"><span class="returnvalue">ESourceGroup</span></a> * <a class="link" href="ESourceSelector.html#e-source-selector-get-primary-source-group" title="e_source_selector_get_primary_source_group ()">e_source_selector_get_primary_source_group</a>
75
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);
76
#define <a class="link" href="ESourceSelector.html#e-source-selector-peek-primary-selection" title="e_source_selector_peek_primary_selection">e_source_selector_peek_primary_selection</a>
77
<a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="returnvalue">ESource</span></a> * <a class="link" href="ESourceSelector.html#e-source-selector-get-source-by-path" title="e_source_selector_get_source_by_path ()">e_source_selector_get_source_by_path</a>
79
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);
80
<span class="returnvalue">ESource</span> * <a class="link" href="ESourceSelector.html#e-source-selector-ref-source-by-path" title="e_source_selector_ref_source_by_path ()">e_source_selector_ref_source_by_path</a>
78
81
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
79
<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> *path</code></em>);
82
<em class="parameter"><code><span class="type">GtkTreePath</span> *path</code></em>);
83
<span class="returnvalue">void</span> <a class="link" href="ESourceSelector.html#e-source-selector-queue-write" title="e_source_selector_queue_write ()">e_source_selector_queue_write</a> (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
84
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);
82
87
<div class="refsect1">
83
88
<a name="ESourceSelector.object-hierarchy"></a><h2>Object Hierarchy</h2>
84
89
<pre class="synopsis">
85
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
86
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
87
+----<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html">GtkWidget</a>
88
+----<a href="http://developer.gnome.org/devel/gtk/GtkContainer.html">GtkContainer</a>
89
+----<a href="http://developer.gnome.org/devel/gtk/GtkTreeView.html">GtkTreeView</a>
91
+----GInitiallyUnowned
90
95
+----ESourceSelector
94
99
<a name="ESourceSelector.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
96
101
ESourceSelector implements
97
AtkImplementorIface, <a href="http://developer.gnome.org/devel/gtk/GtkBuildable.html">GtkBuildable</a> and <a href="http://developer.gnome.org/devel/gtk/GtkScrollable.html">GtkScrollable</a>.</p>
102
AtkImplementorIface, GtkBuildable and GtkScrollable.</p>
99
104
<div class="refsect1">
100
105
<a name="ESourceSelector.properties"></a><h2>Properties</h2>
101
106
<pre class="synopsis">
102
"<a class="link" href="ESourceSelector.html#ESourceSelector--primary-selection" title='The "primary-selection" property'>primary-selection</a>" <a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a>* : Read / Write
103
"<a class="link" href="ESourceSelector.html#ESourceSelector--source-list" title='The "source-list" property'>source-list</a>" <a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="type">ESourceList</span></a>* : Read / Write / Construct Only
107
"<a class="link" href="ESourceSelector.html#ESourceSelector--extension-name" title='The "extension-name" property'>extension-name</a>" <span class="type">gchar</span>* : Read / Write / Construct Only
108
"<a class="link" href="ESourceSelector.html#ESourceSelector--primary-selection" title='The "primary-selection" property'>primary-selection</a>" <span class="type">ESource</span>* : Read / Write
109
"<a class="link" href="ESourceSelector.html#ESourceSelector--registry" title='The "registry" property'>registry</a>" <span class="type">ESourceRegistry</span>* : Read / Write / Construct Only
110
"<a class="link" href="ESourceSelector.html#ESourceSelector--show-colors" title='The "show-colors" property'>show-colors</a>" <span class="type">gboolean</span> : Read / Write
111
"<a class="link" href="ESourceSelector.html#ESourceSelector--show-toggles" title='The "show-toggles" property'>show-toggles</a>" <span class="type">gboolean</span> : Read / Write
106
114
<div class="refsect1">
107
115
<a name="ESourceSelector.signals"></a><h2>Signals</h2>
108
116
<pre class="synopsis">
109
"<a class="link" href="ESourceSelector.html#ESourceSelector-data-dropped" title='The "data-dropped" signal'>data-dropped</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>
110
"<a class="link" href="ESourceSelector.html#ESourceSelector-popup-event" title='The "popup-event" signal'>popup-event</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>
111
"<a class="link" href="ESourceSelector.html#ESourceSelector-primary-selection-changed" title='The "primary-selection-changed" signal'>primary-selection-changed</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
"<a class="link" href="ESourceSelector.html#ESourceSelector-selection-changed" title='The "selection-changed" signal'>selection-changed</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>
117
"<a class="link" href="ESourceSelector.html#ESourceSelector-data-dropped" title='The "data-dropped" signal'>data-dropped</a>" : <code class="literal">Run Last</code>
118
"<a class="link" href="ESourceSelector.html#ESourceSelector-popup-event" title='The "popup-event" signal'>popup-event</a>" : <code class="literal">Run Last</code>
119
"<a class="link" href="ESourceSelector.html#ESourceSelector-primary-selection-changed" title='The "primary-selection-changed" signal'>primary-selection-changed</a>" : <code class="literal">Run Last</code>
120
"<a class="link" href="ESourceSelector.html#ESourceSelector-selection-changed" title='The "selection-changed" signal'>selection-changed</a>" : <code class="literal">Run Last</code>
115
123
<div class="refsect1">
125
133
<div class="refsect2">
126
134
<a name="e-source-selector-new"></a><h3>e_source_selector_new ()</h3>
127
<pre class="programlisting"><a href="http://developer.gnome.org/devel/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * e_source_selector_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="type">ESourceList</span></a> *list</code></em>);</pre>
129
Create a new view for <em class="parameter"><code>list</code></em>. The view will update automatically when <em class="parameter"><code>list</code></em>
132
<div class="variablelist"><table border="0">
133
<col align="left" valign="top">
136
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
137
<td>A source list.</td>
140
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
141
<td>The newly created widget.</td>
147
<div class="refsect2">
148
<a name="e-source-selector-get-source-list"></a><h3>e_source_selector_get_source_list ()</h3>
149
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="returnvalue">ESourceList</span></a> * e_source_selector_get_source_list (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
151
Returns the <a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="type">ESourceList</span></a> that <em class="parameter"><code>selector</code></em> is rendering.
153
<div class="variablelist"><table border="0">
154
<col align="left" valign="top">
157
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
158
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
162
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
163
<td>an <a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="type">ESourceList</span></a>
168
<p class="since">Since 2.24</p>
135
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * e_source_selector_new (<em class="parameter"><code><span class="type">ESourceRegistry</span> *registry</code></em>,
136
<em class="parameter"><code>const <span class="type">gchar</span> *extension_name</code></em>);</pre>
138
Displays a list of sources from <em class="parameter"><code>registry</code></em> having an extension named
139
<em class="parameter"><code>extension_name</code></em>. The sources are grouped by backend or groupware
140
account, which are described by the parent source.
142
<div class="variablelist"><table border="0">
143
<col align="left" valign="top">
146
<td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
147
<td>an <span class="type">ESourceRegistry</span>
151
<td><p><span class="term"><em class="parameter"><code>extension_name</code></em> :</span></p></td>
152
<td>the name of an <span class="type">ESource</span> extension</td>
155
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
156
<td>a new <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
163
<div class="refsect2">
164
<a name="e-source-selector-get-registry"></a><h3>e_source_selector_get_registry ()</h3>
165
<pre class="programlisting"><span class="returnvalue">ESourceRegistry</span> * e_source_selector_get_registry (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
167
Returns the <span class="type">ESourceRegistry</span> that <em class="parameter"><code>selector</code></em> is getting sources from.
169
<div class="variablelist"><table border="0">
170
<col align="left" valign="top">
173
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
174
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
178
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
179
<td>an <span class="type">ESourceRegistry</span>
184
<p class="since">Since 3.6</p>
187
<div class="refsect2">
188
<a name="e-source-selector-get-extension-name"></a><h3>e_source_selector_get_extension_name ()</h3>
189
<pre class="programlisting">const <span class="returnvalue">gchar</span> * e_source_selector_get_extension_name
190
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
192
Returns the extension name used to filter which sources are displayed.
194
<div class="variablelist"><table border="0">
195
<col align="left" valign="top">
198
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
199
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
203
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
204
<td>the <span class="type">ESource</span> extension name</td>
208
<p class="since">Since 3.6</p>
211
<div class="refsect2">
212
<a name="e-source-selector-get-show-colors"></a><h3>e_source_selector_get_show_colors ()</h3>
213
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_selector_get_show_colors (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
215
Returns whether colors are shown next to data sources.
217
<div class="variablelist"><table border="0">
218
<col align="left" valign="top">
221
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
222
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
226
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
228
<code class="literal">TRUE</code> if colors are being shown</td>
232
<p class="since">Since 3.6</p>
235
<div class="refsect2">
236
<a name="e-source-selector-set-show-colors"></a><h3>e_source_selector_set_show_colors ()</h3>
237
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_set_show_colors (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
238
<em class="parameter"><code><span class="type">gboolean</span> show_colors</code></em>);</pre>
240
Sets whether to show colors next to data sources.
242
<div class="variablelist"><table border="0">
243
<col align="left" valign="top">
246
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
247
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
251
<td><p><span class="term"><em class="parameter"><code>show_colors</code></em> :</span></p></td>
252
<td>whether to show colors</td>
256
<p class="since">Since 3.6</p>
259
<div class="refsect2">
260
<a name="e-source-selector-get-show-toggles"></a><h3>e_source_selector_get_show_toggles ()</h3>
261
<pre class="programlisting"><span class="returnvalue">gboolean</span> e_source_selector_get_show_toggles (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
263
Returns whether toggles are shown next to data sources.
265
<div class="variablelist"><table border="0">
266
<col align="left" valign="top">
269
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
270
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
274
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
276
<code class="literal">TRUE</code> if toggles are being shown</td>
280
<p class="since">Since 3.6</p>
283
<div class="refsect2">
284
<a name="e-source-selector-set-show-toggles"></a><h3>e_source_selector_set_show_toggles ()</h3>
285
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_set_show_toggles (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
286
<em class="parameter"><code><span class="type">gboolean</span> show_toggles</code></em>);</pre>
288
Sets whether to show toggles next to data sources.
290
<div class="variablelist"><table border="0">
291
<col align="left" valign="top">
294
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
295
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
299
<td><p><span class="term"><em class="parameter"><code>show_toggles</code></em> :</span></p></td>
300
<td>whether to show toggles</td>
304
<p class="since">Since 3.6</p>
171
307
<div class="refsect2">
172
308
<a name="e-source-selector-select-source"></a><h3>e_source_selector_select_source ()</h3>
173
309
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_select_source (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
174
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *source</code></em>);</pre>
310
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);</pre>
176
312
Select <em class="parameter"><code>source</code></em> in <em class="parameter"><code>selector</code></em>.
291
427
<div class="refsect2">
292
428
<a name="e-source-selector-free-selection"></a><h3>e_source_selector_free_selection ()</h3>
293
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_free_selection (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> *list</code></em>);</pre>
296
<div class="refsect2">
297
<a name="e-source-selector-show-selection"></a><h3>e_source_selector_show_selection ()</h3>
298
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_show_selection (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
299
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> show</code></em>);</pre>
301
Specify whether the checkboxes in the ESourceSelector should be shown or
304
<div class="variablelist"><table border="0">
305
<col align="left" valign="top">
307
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
308
<td>An ESourceSelector widget</td>
313
<div class="refsect2">
314
<a name="e-source-selector-selection-shown"></a><h3>e_source_selector_selection_shown ()</h3>
315
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> e_source_selector_selection_shown (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
317
Check whether the checkboxes in the ESourceSelector are being shown or not.
319
<div class="variablelist"><table border="0">
320
<col align="left" valign="top">
323
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
324
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
328
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
330
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the checkboxes are shown, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
429
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_free_selection (<em class="parameter"><code><span class="type">GSList</span> *list</code></em>);</pre>
336
432
<div class="refsect2">
337
433
<a name="e-source-selector-set-select-new"></a><h3>e_source_selector_set_select_new ()</h3>
338
434
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_set_select_new (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
339
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state</code></em>);</pre>
435
<em class="parameter"><code><span class="type">gboolean</span> state</code></em>);</pre>
341
437
Set whether or not to select new sources added to <em class="parameter"><code>selector</code></em>.
417
518
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
418
<td>an <a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> to select</td>
424
<div class="refsect2">
425
<a name="e-source-selector-get-primary-source-group"></a><h3>e_source_selector_get_primary_source_group ()</h3>
426
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/libedataserver/ESourceGroup.html"><span class="returnvalue">ESourceGroup</span></a> * e_source_selector_get_primary_source_group
427
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>);</pre>
429
Gets the primary source group associated with the selector.
431
<div class="variablelist"><table border="0">
432
<col align="left" valign="top">
435
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
436
<td>an <a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a>
440
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
441
<td>primary_source_group if selector is valid, NULL otherwise.</td>
447
<div class="refsect2">
448
<a name="e-source-selector-peek-primary-selection"></a><h3>e_source_selector_peek_primary_selection</h3>
449
<pre class="programlisting">#define e_source_selector_peek_primary_selection</pre>
450
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
451
<h3 class="title">Warning</h3>
452
<p><code class="literal">e_source_selector_peek_primary_selection</code> is deprecated and should not be used in newly-written code.</p>
456
<div class="refsect2">
457
<a name="e-source-selector-get-source-by-path"></a><h3>e_source_selector_get_source_by_path ()</h3>
458
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="returnvalue">ESource</span></a> * e_source_selector_get_source_by_path
519
<td>an <span class="type">ESource</span> to select</td>
525
<div class="refsect2">
526
<a name="e-source-selector-ref-source-by-path"></a><h3>e_source_selector_ref_source_by_path ()</h3>
527
<pre class="programlisting"><span class="returnvalue">ESource</span> * e_source_selector_ref_source_by_path
459
528
(<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
460
<em class="parameter"><code><a href="http://developer.gnome.org/devel/gtk/GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a> *path</code></em>);</pre>
462
Returns the <a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> object at <em class="parameter"><code>path</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>path</code></em> is invalid.
529
<em class="parameter"><code><span class="type">GtkTreePath</span> *path</code></em>);</pre>
531
Returns the <span class="type">ESource</span> object at <em class="parameter"><code>path</code></em>, or <code class="literal">NULL</code> if <em class="parameter"><code>path</code></em> is invalid.
534
The returned <span class="type">ESource</span> is referenced for thread-safety and must be
535
unreferenced with <code class="function">g_object_unref()</code> when finished with it.
464
537
<div class="variablelist"><table border="0">
465
538
<col align="left" valign="top">
473
546
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
474
<td>a <a href="http://developer.gnome.org/devel/gtk/GtkTreeModel.html#GtkTreePath"><span class="type">GtkTreePath</span></a>
547
<td>a <span class="type">GtkTreePath</span>
478
551
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
479
<td>the <a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> object at <em class="parameter"><code>path</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
484
<p class="since">Since 3.0</p>
552
<td>the <span class="type">ESource</span> object at <em class="parameter"><code>path</code></em>, or <code class="literal">NULL</code>
557
<p class="since">Since 3.6</p>
560
<div class="refsect2">
561
<a name="e-source-selector-queue-write"></a><h3>e_source_selector_queue_write ()</h3>
562
<pre class="programlisting"><span class="returnvalue">void</span> e_source_selector_queue_write (<em class="parameter"><code><a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *selector</code></em>,
563
<em class="parameter"><code><span class="type">ESource</span> *source</code></em>);</pre>
565
Queues a main loop idle callback to write changes to <em class="parameter"><code>source</code></em> back to
566
the D-Bus registry service.
568
<div class="variablelist"><table border="0">
569
<col align="left" valign="top">
572
<td><p><span class="term"><em class="parameter"><code>selector</code></em> :</span></p></td>
573
<td>an <span class="type">ESourceSelecetor</span>
577
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
578
<td>an <span class="type">ESource</span> with changes to be written</td>
582
<p class="since">Since 3.6</p>
487
585
<div class="refsect1">
488
586
<a name="ESourceSelector.property-details"></a><h2>Property Details</h2>
489
587
<div class="refsect2">
588
<a name="ESourceSelector--extension-name"></a><h3>The <code class="literal">"extension-name"</code> property</h3>
589
<pre class="programlisting"> "extension-name" <span class="type">gchar</span>* : Read / Write / Construct Only</pre>
591
<p>Default value: NULL</p>
594
<div class="refsect2">
490
595
<a name="ESourceSelector--primary-selection"></a><h3>The <code class="literal">"primary-selection"</code> property</h3>
491
<pre class="programlisting"> "primary-selection" <a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a>* : Read / Write</pre>
495
<div class="refsect2">
496
<a name="ESourceSelector--source-list"></a><h3>The <code class="literal">"source-list"</code> property</h3>
497
<pre class="programlisting"> "source-list" <a href="/usr/share/gtk-doc/html/libedataserver/ESourceList.html"><span class="type">ESourceList</span></a>* : Read / Write / Construct Only</pre>
596
<pre class="programlisting"> "primary-selection" <span class="type">ESource</span>* : Read / Write</pre>
600
<div class="refsect2">
601
<a name="ESourceSelector--registry"></a><h3>The <code class="literal">"registry"</code> property</h3>
602
<pre class="programlisting"> "registry" <span class="type">ESourceRegistry</span>* : Read / Write / Construct Only</pre>
606
<div class="refsect2">
607
<a name="ESourceSelector--show-colors"></a><h3>The <code class="literal">"show-colors"</code> property</h3>
608
<pre class="programlisting"> "show-colors" <span class="type">gboolean</span> : Read / Write</pre>
610
<p>Default value: TRUE</p>
613
<div class="refsect2">
614
<a name="ESourceSelector--show-toggles"></a><h3>The <code class="literal">"show-toggles"</code> property</h3>
615
<pre class="programlisting"> "show-toggles" <span class="type">gboolean</span> : Read / Write</pre>
617
<p>Default value: TRUE</p>
501
620
<div class="refsect1">
502
621
<a name="ESourceSelector.signal-details"></a><h2>Signal Details</h2>
503
622
<div class="refsect2">
504
623
<a name="ESourceSelector-data-dropped"></a><h3>The <code class="literal">"data-dropped"</code> signal</h3>
505
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *esourceselector,
506
<a href="http://developer.gnome.org/devel/gtk/GtkWidget.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> *arg1,
507
<a href="/usr/share/gtk-doc/html/libedataserver/ESource.html"><span class="type">ESource</span></a> *arg2,
508
<a href="http://developer.gnome.org/devel/gdk/gdk3-Drag-and-Drop.html#GdkDragAction"><span class="type">GdkDragAction</span></a> arg3,
509
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> arg4,
510
<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>
624
<pre class="programlisting"><span class="returnvalue">gboolean</span> user_function (<a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *esourceselector,
625
<span class="type">GtkSelectionData</span> *arg1,
626
<span class="type">ESource</span> *arg2,
627
<span class="type">GdkDragAction</span> arg3,
628
<span class="type">guint</span> arg4,
629
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
513
632
<div class="refsect2">
514
633
<a name="ESourceSelector-popup-event"></a><h3>The <code class="literal">"popup-event"</code> signal</h3>
515
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *esourceselector,
516
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> *arg1,
517
<a href="http://developer.gnome.org/devel/gdk/gdk3-Event-Structures.html#GdkEvent"><span class="type">GdkEvent</span></a> *arg2,
518
<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>
634
<pre class="programlisting"><span class="returnvalue">gboolean</span> user_function (<a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *esourceselector,
635
<span class="type">GObject</span> *arg1,
636
<span class="type">GdkEvent</span> *arg2,
637
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
521
640
<div class="refsect2">
522
641
<a name="ESourceSelector-primary-selection-changed"></a><h3>The <code class="literal">"primary-selection-changed"</code> signal</h3>
523
642
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *esourceselector,
524
<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>
643
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
527
646
<div class="refsect2">
528
647
<a name="ESourceSelector-selection-changed"></a><h3>The <code class="literal">"selection-changed"</code> signal</h3>
529
648
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="ESourceSelector.html" title="ESourceSelector"><span class="type">ESourceSelector</span></a> *esourceselector,
530
<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>
649
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>