4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Shell Utilities</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
7
<link rel="home" href="index.html" title="Evolution Shell Reference Manual">
8
8
<link rel="up" href="ch01.html" title="The Shell">
9
9
<link rel="prev" href="EShellSwitcher.html" title="EShellSwitcher">
10
10
<link rel="next" href="ch02.html" title="Basic Utility Functions">
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">
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
43
43
<span class="returnvalue">void</span> <a class="link" href="eshell-Shell-Utilities.html#e-shell-configure-ui-manager" title="e_shell_configure_ui_manager ()">e_shell_configure_ui_manager</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
44
44
<em class="parameter"><code><span class="type">EUIManager</span> *ui_manager</code></em>);
45
<span class="returnvalue">GFile</span> * <a class="link" href="eshell-Shell-Utilities.html#e-shell-run-open-dialog" title="e_shell_run_open_dialog ()">e_shell_run_open_dialog</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
46
<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
47
<em class="parameter"><code><span class="type">GtkCallback</span> customize_func</code></em>,
48
<em class="parameter"><code><span class="type">gpointer</span> customize_data</code></em>);
49
<span class="returnvalue">GFile</span> * <a class="link" href="eshell-Shell-Utilities.html#e-shell-run-save-dialog" title="e_shell_run_save_dialog ()">e_shell_run_save_dialog</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
50
<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
51
<em class="parameter"><code>const <span class="type">gchar</span> *suggestion</code></em>,
52
<em class="parameter"><code>const <span class="type">gchar</span> *filters</code></em>,
53
<em class="parameter"><code><span class="type">GtkCallback</span> customize_func</code></em>,
54
<em class="parameter"><code><span class="type">gpointer</span> customize_data</code></em>);
55
<span class="returnvalue">guint</span> <a class="link" href="eshell-Shell-Utilities.html#e-shell-utils-import-uris" title="e_shell_utils_import_uris ()">e_shell_utils_import_uris</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
56
<em class="parameter"><code>const <span class="type">gchar</span> * const *uris</code></em>);
45
<a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="returnvalue">GFile</span></a> * <a class="link" href="eshell-Shell-Utilities.html#e-shell-run-open-dialog" title="e_shell_run_open_dialog ()">e_shell_run_open_dialog</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
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> *title</code></em>,
47
<em class="parameter"><code><span class="type">GtkCallback</span> customize_func</code></em>,
48
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> customize_data</code></em>);
49
<a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="returnvalue">GFile</span></a> * <a class="link" href="eshell-Shell-Utilities.html#e-shell-run-save-dialog" title="e_shell_run_save_dialog ()">e_shell_run_save_dialog</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
50
<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> *title</code></em>,
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> *suggestion</code></em>,
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> *filters</code></em>,
53
<em class="parameter"><code><span class="type">GtkCallback</span> customize_func</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> customize_data</code></em>);
55
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="eshell-Shell-Utilities.html#e-shell-utils-import-uris" title="e_shell_utils_import_uris ()">e_shell_utils_import_uris</a> (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
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> * const *uris</code></em>);
57
57
<span class="returnvalue">void</span> <a class="link" href="eshell-Shell-Utilities.html#e-shell-hide-widgets-for-express-mode" title="e_shell_hide_widgets_for_express_mode ()">e_shell_hide_widgets_for_express_mode</a>
58
58
(<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
59
59
<em class="parameter"><code><span class="type">GtkBuilder</span> *builder</code></em>,
60
<em class="parameter"><code>const <span class="type">gchar</span> *widget_name</code></em>,
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> *widget_name</code></em>,
61
61
<em class="parameter"><code>...</code></em>);
95
95
<div class="refsect2">
96
96
<a name="e-shell-run-open-dialog"></a><h3>e_shell_run_open_dialog ()</h3>
97
<pre class="programlisting"><span class="returnvalue">GFile</span> * e_shell_run_open_dialog (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
98
<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
97
<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="returnvalue">GFile</span></a> * e_shell_run_open_dialog (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
98
<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> *title</code></em>,
99
99
<em class="parameter"><code><span class="type">GtkCallback</span> customize_func</code></em>,
100
<em class="parameter"><code><span class="type">gpointer</span> customize_data</code></em>);</pre>
100
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> customize_data</code></em>);</pre>
102
102
Runs a <span class="type">GtkFileChooserDialog</span> in open mode with the given title and
103
returns the selected <span class="type">GFile</span>. It automatically remembers the selected
103
returns the selected <a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a>. It automatically remembers the selected
104
104
folder. If <em class="parameter"><code>customize_func</code></em> is provided, the function is called just
105
105
prior to running the dialog (the file chooser is the first argument,
106
106
<em class="parameter"><code>customize</code></em> data is the second). If the user cancels the dialog the
107
function will return <a href="/home/chen/opt-unstable/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
107
function will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
109
109
<div class="variablelist"><table border="0">
110
110
<col align="left" valign="top">
139
139
<div class="refsect2">
140
140
<a name="e-shell-run-save-dialog"></a><h3>e_shell_run_save_dialog ()</h3>
141
<pre class="programlisting"><span class="returnvalue">GFile</span> * e_shell_run_save_dialog (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
142
<em class="parameter"><code>const <span class="type">gchar</span> *title</code></em>,
143
<em class="parameter"><code>const <span class="type">gchar</span> *suggestion</code></em>,
144
<em class="parameter"><code>const <span class="type">gchar</span> *filters</code></em>,
141
<pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="returnvalue">GFile</span></a> * e_shell_run_save_dialog (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
142
<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> *title</code></em>,
143
<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> *suggestion</code></em>,
144
<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> *filters</code></em>,
145
145
<em class="parameter"><code><span class="type">GtkCallback</span> customize_func</code></em>,
146
<em class="parameter"><code><span class="type">gpointer</span> customize_data</code></em>);</pre>
146
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> customize_data</code></em>);</pre>
148
148
Runs a <span class="type">GtkFileChooserDialog</span> in save mode with the given title and
149
returns the selected <span class="type">GFile</span>. It automatically remembers the selected
149
returns the selected <a href="http://library.gnome.org/devel/gio/unstable/GFile.html"><span class="type">GFile</span></a>. It automatically remembers the selected
150
150
folder. If <em class="parameter"><code>customize_func</code></em> is provided, the function is called just
151
151
prior to running the dialog (the file chooser is the first argument,
152
152
<em class="parameter"><code>customize_data</code></em> is the second). If the user cancels the dialog the
153
function will return <a href="/home/chen/opt-unstable/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.
153
function will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
156
With non-<a href="/home/chen/opt-unstable/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> <em class="parameter"><code>filters</code></em> will be added also file filters to the dialog.
156
With non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> <em class="parameter"><code>filters</code></em> will be added also file filters to the dialog.
157
157
The string format is "pat1:mt1;pat2:mt2:...", where 'pat' is a pattern
158
158
and 'mt' is a MIME type for the pattern to be used.
159
159
There can be more than one MIME type, those are separated by comma.
174
174
<td><p><span class="term"><em class="parameter"><code>suggestion</code></em> :</span></p></td>
175
<td>file name suggestion, or <a href="/home/chen/opt-unstable/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
175
<td>file name suggestion, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
179
179
<td><p><span class="term"><em class="parameter"><code>filters</code></em> :</span></p></td>
180
<td>Possible filters for dialog, or <a href="/home/chen/opt-unstable/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
180
<td>Possible filters for dialog, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
201
201
<div class="refsect2">
202
202
<a name="e-shell-utils-import-uris"></a><h3>e_shell_utils_import_uris ()</h3>
203
<pre class="programlisting"><span class="returnvalue">guint</span> e_shell_utils_import_uris (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
204
<em class="parameter"><code>const <span class="type">gchar</span> * const *uris</code></em>);</pre>
203
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> e_shell_utils_import_uris (<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
204
<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> * const *uris</code></em>);</pre>
206
206
Imports given URIs to Evolution, giving user a choice what to import
207
207
if more than one importer can be applied, and where to import it, if
236
236
<pre class="programlisting"><span class="returnvalue">void</span> e_shell_hide_widgets_for_express_mode
237
237
(<em class="parameter"><code><a class="link" href="EShell.html" title="EShell"><span class="type">EShell</span></a> *shell</code></em>,
238
238
<em class="parameter"><code><span class="type">GtkBuilder</span> *builder</code></em>,
239
<em class="parameter"><code>const <span class="type">gchar</span> *widget_name</code></em>,
239
<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> *widget_name</code></em>,
240
240
<em class="parameter"><code>...</code></em>);</pre>
242
242
If Evolution is running in Express mode (i.e. if the specified <em class="parameter"><code>shell</code></em> is