~ubuntu-branches/ubuntu/natty/gnome-vfs/natty

« back to all changes in this revision

Viewing changes to doc/html/gnome-vfs-2.0-gnome-vfs-application-registry.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-03-17 16:12:58 UTC
  • mfrom: (0.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090317161258-px3a2czt9g2ktjz3
Tags: 1:2.24.1-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
5
<title>Deprecated Application Registry API</title>
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.3">
 
7
<link rel="home" href="index.html" title="GnomeVFS - Filesystem Abstraction library">
 
8
<link rel="up" href="mime-registry.html" title="MIME Registry">
 
9
<link rel="prev" href="gnome-vfs-2.0-gnome-vfs-mime-database-deprecated.html" title="gnome-vfs-mime-database-deprecated">
 
10
<link rel="next" href="modules.html" title="Filesystem Modules">
 
11
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
 
12
<link rel="stylesheet" href="style.css" type="text/css">
 
13
<link rel="chapter" href="about.html" title="Introduction to GnomeVFS">
 
14
<link rel="chapter" href="data-types.html" title="Basic Data Types">
 
15
<link rel="chapter" href="gnome-vfs-basic-file-ops.html" title="File Operations">
 
16
<link rel="chapter" href="gnome-vfs-directory-ops.html" title="Directory-Specific Operations">
 
17
<link rel="chapter" href="gnome-vfs-file-and-dirs-ops.html" title="Advanced File/Directory Operations">
 
18
<link rel="chapter" href="gnome-vfs-file-async-ops.html" title="Asynchronous Operations">
 
19
<link rel="chapter" href="volumes.html" title="Volumes and Drives Handling">
 
20
<link rel="chapter" href="networking.html" title="Networking">
 
21
<link rel="chapter" href="mime-registry.html" title="MIME Registry">
 
22
<link rel="chapter" href="modules.html" title="Filesystem Modules">
 
23
</head>
 
24
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
 
25
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
 
26
<tr valign="middle">
 
27
<td><a accesskey="p" href="gnome-vfs-2.0-gnome-vfs-mime-database-deprecated.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
 
28
<td><a accesskey="u" href="mime-registry.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
 
29
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
 
30
<th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th>
 
31
<td><a accesskey="n" href="modules.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
 
32
</tr>
 
33
<tr><td colspan="5" class="shortcuts">
 
34
<a href="#gnome-vfs-2.0-gnome-vfs-application-registry.synopsis" class="shortcut">Top</a>
 
35
                   | 
 
36
                  <a href="#gnome-vfs-2.0-gnome-vfs-application-registry.description" class="shortcut">Description</a>
 
37
</td></tr>
 
38
</table>
 
39
<div class="refentry" lang="en">
 
40
<a name="gnome-vfs-2.0-gnome-vfs-application-registry"></a><div class="titlepage"></div>
 
41
<div class="refnamediv"><table width="100%"><tr>
 
42
<td valign="top">
 
43
<h2><span class="refentrytitle"><a name="gnome-vfs-2.0-gnome-vfs-application-registry.top_of_page"></a>Deprecated Application Registry API</span></h2>
 
44
<p>Deprecated Application Registry API — formerly used for managing applications.  Replaced by
 
45
<span class="type">GnomeVFS MIME Database</span> API</p>
 
46
</td>
 
47
<td valign="top" align="right"></td>
 
48
</tr></table></div>
 
49
<div class="refsynopsisdiv">
 
50
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.synopsis"></a><h2>Synopsis</h2>
 
51
<pre class="synopsis">
 
52
#define             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-COMMAND:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_COMMAND">GNOME_VFS_APPLICATION_REGISTRY_COMMAND</a>
 
53
#define             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-NAME:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_NAME">GNOME_VFS_APPLICATION_REGISTRY_NAME</a>
 
54
#define             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-CAN-OPEN-MULTIPLE-FILES:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES">GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES</a>
 
55
#define             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#GNOME-VFS-APPLICATION-REGISTRY-REQUIRES-TERMINAL:CAPS" title="GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL">GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL</a>
 
56
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-exists" title="gnome_vfs_application_registry_exists ()">gnome_vfs_application_registry_exists</a>
 
57
                                                        (const char *app_id);
 
58
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-keys" title="gnome_vfs_application_registry_get_keys ()">gnome_vfs_application_registry_get_keys</a>
 
59
                                                        (const char *app_id);
 
60
const char *        <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-peek-value" title="gnome_vfs_application_registry_peek_value ()">gnome_vfs_application_registry_peek_value</a>
 
61
                                                        (const char *app_id,
 
62
                                                         const char *key);
 
63
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-bool-value" title="gnome_vfs_application_registry_get_bool_value ()">gnome_vfs_application_registry_get_bool_value</a>
 
64
                                                        (const char *app_id,
 
65
                                                         const char *key,
 
66
                                                         gboolean *got_key);
 
67
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-remove-application" title="gnome_vfs_application_registry_remove_application ()">gnome_vfs_application_registry_remove_application</a>
 
68
                                                        (const char *app_id);
 
69
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-set-value" title="gnome_vfs_application_registry_set_value ()">gnome_vfs_application_registry_set_value</a>
 
70
                                                        (const char *app_id,
 
71
                                                         const char *key,
 
72
                                                         const char *value);
 
73
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-set-bool-value" title="gnome_vfs_application_registry_set_bool_value ()">gnome_vfs_application_registry_set_bool_value</a>
 
74
                                                        (const char *app_id,
 
75
                                                         const char *key,
 
76
                                                         gboolean value);
 
77
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-unset-key" title="gnome_vfs_application_registry_unset_key ()">gnome_vfs_application_registry_unset_key</a>
 
78
                                                        (const char *app_id,
 
79
                                                         const char *key);
 
80
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-applications" title="gnome_vfs_application_registry_get_applications ()">gnome_vfs_application_registry_get_applications</a>
 
81
                                                        (const char *mime_type);
 
82
GList *             <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-mime-types" title="gnome_vfs_application_registry_get_mime_types ()">gnome_vfs_application_registry_get_mime_types</a>
 
83
                                                        (const char *app_id);
 
84
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-supports-mime-type" title="gnome_vfs_application_registry_supports_mime_type ()">gnome_vfs_application_registry_supports_mime_type</a>
 
85
                                                        (const char *app_id,
 
86
                                                         const char *mime_type);
 
87
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-supports-uri-scheme" title="gnome_vfs_application_registry_supports_uri_scheme ()">gnome_vfs_application_registry_supports_uri_scheme</a>
 
88
                                                        (const char *app_id,
 
89
                                                         const char *uri_scheme);
 
90
gboolean            <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-is-user-owned-application" title="gnome_vfs_application_is_user_owned_application ()">gnome_vfs_application_is_user_owned_application</a>
 
91
                                                        (const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
 
92
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-clear-mime-types" title="gnome_vfs_application_registry_clear_mime_types ()">gnome_vfs_application_registry_clear_mime_types</a>
 
93
                                                        (const char *app_id);
 
94
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-add-mime-type" title="gnome_vfs_application_registry_add_mime_type ()">gnome_vfs_application_registry_add_mime_type</a>
 
95
                                                        (const char *app_id,
 
96
                                                         const char *mime_type);
 
97
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-remove-mime-type" title="gnome_vfs_application_registry_remove_mime_type ()">gnome_vfs_application_registry_remove_mime_type</a>
 
98
                                                        (const char *app_id,
 
99
                                                         const char *mime_type);
 
100
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a>      <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-sync" title="gnome_vfs_application_registry_sync ()">gnome_vfs_application_registry_sync</a> (void);
 
101
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-shutdown" title="gnome_vfs_application_registry_shutdown ()">gnome_vfs_application_registry_shutdown</a>
 
102
                                                        (void);
 
103
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-reload" title="gnome_vfs_application_registry_reload ()">gnome_vfs_application_registry_reload</a>
 
104
                                                        (void);
 
105
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-get-mime-application" title="gnome_vfs_application_registry_get_mime_application ()">gnome_vfs_application_registry_get_mime_application</a>
 
106
                                                        (const char *app_id);
 
107
void                <a class="link" href="gnome-vfs-2.0-gnome-vfs-application-registry.html#gnome-vfs-application-registry-save-mime-application" title="gnome_vfs_application_registry_save_mime_application ()">gnome_vfs_application_registry_save_mime_application</a>
 
108
                                                        (const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
 
109
</pre>
 
110
</div>
 
111
<div class="refsect1" lang="en">
 
112
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.description"></a><h2>Description</h2>
 
113
<p>
 
114
This API was formerly used to manage the applications known
 
115
to GnomeVFS, providing editing capabilities. The system was
 
116
overengineered and not very performant, so it has been
 
117
replaced by a new API, described in the
 
118
<span class="type">GnomeVFS MIME Database</span>
 
119
section.
 
120
</p>
 
121
</div>
 
122
<div class="refsect1" lang="en">
 
123
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.details"></a><h2>Details</h2>
 
124
<div class="refsect2" lang="en">
 
125
<a name="GNOME-VFS-APPLICATION-REGISTRY-COMMAND:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_COMMAND</h3>
 
126
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_COMMAND "command"
 
127
</pre>
 
128
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
129
<h3 class="title">Warning</h3>
 
130
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_COMMAND</code> is deprecated and should not be used in newly-written code.</p>
 
131
</div>
 
132
<p>
 
133
Application registry key for fetching the command to execute
 
134
an application.</p>
 
135
<p>
 
136
</p>
 
137
</div>
 
138
<hr>
 
139
<div class="refsect2" lang="en">
 
140
<a name="GNOME-VFS-APPLICATION-REGISTRY-NAME:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_NAME</h3>
 
141
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_NAME "name"
 
142
</pre>
 
143
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
144
<h3 class="title">Warning</h3>
 
145
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_NAME</code> is deprecated and should not be used in newly-written code.</p>
 
146
</div>
 
147
<p>
 
148
Application registry key for fetching the name of an application.</p>
 
149
<p>
 
150
</p>
 
151
</div>
 
152
<hr>
 
153
<div class="refsect2" lang="en">
 
154
<a name="GNOME-VFS-APPLICATION-REGISTRY-CAN-OPEN-MULTIPLE-FILES:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES</h3>
 
155
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES "can_open_multiple_files"
 
156
</pre>
 
157
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
158
<h3 class="title">Warning</h3>
 
159
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_CAN_OPEN_MULTIPLE_FILES</code> is deprecated and should not be used in newly-written code.</p>
 
160
</div>
 
161
<p>
 
162
Application registry key for determining if an application 
 
163
can open multiple files in the same invocation.</p>
 
164
<p>
 
165
</p>
 
166
</div>
 
167
<hr>
 
168
<div class="refsect2" lang="en">
 
169
<a name="GNOME-VFS-APPLICATION-REGISTRY-REQUIRES-TERMINAL:CAPS"></a><h3>GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL</h3>
 
170
<pre class="programlisting">#define GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL "requires_terminal"
 
171
</pre>
 
172
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
173
<h3 class="title">Warning</h3>
 
174
<p><code class="literal">GNOME_VFS_APPLICATION_REGISTRY_REQUIRES_TERMINAL</code> is deprecated and should not be used in newly-written code.</p>
 
175
</div>
 
176
<p>
 
177
Application registry key for determining if an application
 
178
needs to run from within a terminal (for example, mpg123)</p>
 
179
<p>
 
180
</p>
 
181
</div>
 
182
<hr>
 
183
<div class="refsect2" lang="en">
 
184
<a name="gnome-vfs-application-registry-exists"></a><h3>gnome_vfs_application_registry_exists ()</h3>
 
185
<pre class="programlisting">gboolean            gnome_vfs_application_registry_exists
 
186
                                                        (const char *app_id);</pre>
 
187
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
188
<h3 class="title">Warning</h3>
 
189
<p><code class="literal">gnome_vfs_application_registry_exists</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
190
deprecated. Use the functions available in gnome-mime-handlers
 
191
instead.</p>
 
192
</div>
 
193
<p>
 
194
This function will return TRUE if there is an entry for <em class="parameter"><code>app_id</code></em> in
 
195
the registry, otherwise FALSE.</p>
 
196
<p>
 
197
</p>
 
198
<div class="variablelist"><table border="0">
 
199
<col align="left" valign="top">
 
200
<tbody>
 
201
<tr>
 
202
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
203
<td> an application ID
 
204
</td>
 
205
</tr>
 
206
<tr>
 
207
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
208
<td> TRUE if the application is in the registry, FALSE if not 
 
209
 
 
210
</td>
 
211
</tr>
 
212
</tbody>
 
213
</table></div>
 
214
</div>
 
215
<hr>
 
216
<div class="refsect2" lang="en">
 
217
<a name="gnome-vfs-application-registry-get-keys"></a><h3>gnome_vfs_application_registry_get_keys ()</h3>
 
218
<pre class="programlisting">GList *             gnome_vfs_application_registry_get_keys
 
219
                                                        (const char *app_id);</pre>
 
220
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
221
<h3 class="title">Warning</h3>
 
222
<p><code class="literal">gnome_vfs_application_registry_get_keys</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
223
deprecated. Use the functions available in gnome-mime-handlers
 
224
instead.</p>
 
225
</div>
 
226
<p>
 
227
This function wil return a list of strings which is the list of
 
228
keys set for <em class="parameter"><code>app_id</code></em> in the application registry.</p>
 
229
<p>
 
230
</p>
 
231
<div class="variablelist"><table border="0">
 
232
<col align="left" valign="top">
 
233
<tbody>
 
234
<tr>
 
235
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
236
<td> the application ID for which to get keys
 
237
</td>
 
238
</tr>
 
239
<tr>
 
240
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
241
<td> A list of the keys set for <em class="parameter"><code>app_id</code></em>
 
242
 
 
243
</td>
 
244
</tr>
 
245
</tbody>
 
246
</table></div>
 
247
</div>
 
248
<hr>
 
249
<div class="refsect2" lang="en">
 
250
<a name="gnome-vfs-application-registry-peek-value"></a><h3>gnome_vfs_application_registry_peek_value ()</h3>
 
251
<pre class="programlisting">const char *        gnome_vfs_application_registry_peek_value
 
252
                                                        (const char *app_id,
 
253
                                                         const char *key);</pre>
 
254
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
255
<h3 class="title">Warning</h3>
 
256
<p><code class="literal">gnome_vfs_application_registry_peek_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
257
deprecated. Use the functions available in gnome-mime-handlers
 
258
instead.</p>
 
259
</div>
 
260
<p>
 
261
This will return the value associated with <em class="parameter"><code>key</code></em> for <em class="parameter"><code>app_id</code></em> in the
 
262
application registry. There is no need to free the return value.</p>
 
263
<p>
 
264
</p>
 
265
<div class="variablelist"><table border="0">
 
266
<col align="left" valign="top">
 
267
<tbody>
 
268
<tr>
 
269
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
270
<td> the application ID for which to look up a value
 
271
</td>
 
272
</tr>
 
273
<tr>
 
274
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
 
275
<td> the key to look up
 
276
</td>
 
277
</tr>
 
278
<tr>
 
279
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
280
<td> the value associated with the key, or NULL if there is no
 
281
associated value
 
282
 
 
283
 
 
284
</td>
 
285
</tr>
 
286
</tbody>
 
287
</table></div>
 
288
</div>
 
289
<hr>
 
290
<div class="refsect2" lang="en">
 
291
<a name="gnome-vfs-application-registry-get-bool-value"></a><h3>gnome_vfs_application_registry_get_bool_value ()</h3>
 
292
<pre class="programlisting">gboolean            gnome_vfs_application_registry_get_bool_value
 
293
                                                        (const char *app_id,
 
294
                                                         const char *key,
 
295
                                                         gboolean *got_key);</pre>
 
296
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
297
<h3 class="title">Warning</h3>
 
298
<p><code class="literal">gnome_vfs_application_registry_get_bool_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
299
deprecated. Use the functions available in gnome-mime-handlers
 
300
instead.</p>
 
301
</div>
 
302
<p>
 
303
This will look up a key in the structure pointed to by app_id and return the
 
304
boolean value of that key.  It will return false if there are no
 
305
applications associated with the app_id.</p>
 
306
<p>
 
307
</p>
 
308
<div class="variablelist"><table border="0">
 
309
<col align="left" valign="top">
 
310
<tbody>
 
311
<tr>
 
312
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
313
<td>  registry id of the application
 
314
</td>
 
315
</tr>
 
316
<tr>
 
317
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
 
318
<td> key to look up
 
319
</td>
 
320
</tr>
 
321
<tr>
 
322
<td><p><span class="term"><em class="parameter"><code>got_key</code></em> :</span></p></td>
 
323
<td> TRUE if a setting was dound, otherwise FALSE
 
324
</td>
 
325
</tr>
 
326
<tr>
 
327
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
328
<td> TRUE if <em class="parameter"><code>key</code></em> is set to "true" or "yes" for <em class="parameter"><code>app_id</code></em>, otherwise FALSE
 
329
 
 
330
</td>
 
331
</tr>
 
332
</tbody>
 
333
</table></div>
 
334
</div>
 
335
<hr>
 
336
<div class="refsect2" lang="en">
 
337
<a name="gnome-vfs-application-registry-remove-application"></a><h3>gnome_vfs_application_registry_remove_application ()</h3>
 
338
<pre class="programlisting">void                gnome_vfs_application_registry_remove_application
 
339
                                                        (const char *app_id);</pre>
 
340
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
341
<h3 class="title">Warning</h3>
 
342
<p><code class="literal">gnome_vfs_application_registry_remove_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
343
deprecated. Use the functions available in gnome-mime-handlers
 
344
instead.</p>
 
345
</div>
 
346
<p>
 
347
Given the registry id this function will remove all applications that has
 
348
been set by the user.  You will need to call
 
349
gnome_vfs_application_registry_sync to save the changes.</p>
 
350
<p>
 
351
</p>
 
352
<div class="variablelist"><table border="0">
 
353
<col align="left" valign="top">
 
354
<tbody><tr>
 
355
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
356
<td>  registry id of the application
 
357
</td>
 
358
</tr></tbody>
 
359
</table></div>
 
360
</div>
 
361
<hr>
 
362
<div class="refsect2" lang="en">
 
363
<a name="gnome-vfs-application-registry-set-value"></a><h3>gnome_vfs_application_registry_set_value ()</h3>
 
364
<pre class="programlisting">void                gnome_vfs_application_registry_set_value
 
365
                                                        (const char *app_id,
 
366
                                                         const char *key,
 
367
                                                         const char *value);</pre>
 
368
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
369
<h3 class="title">Warning</h3>
 
370
<p><code class="literal">gnome_vfs_application_registry_set_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
371
deprecated. Use the functions available in gnome-mime-handlers
 
372
instead.</p>
 
373
</div>
 
374
<p>
 
375
This function will set values pertaining to registry entry pointed to by
 
376
app_id.  You will need to call gnome_vfs_application_registry_sync to
 
377
realize the changes.</p>
 
378
<p>
 
379
</p>
 
380
<div class="variablelist"><table border="0">
 
381
<col align="left" valign="top">
 
382
<tbody>
 
383
<tr>
 
384
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
385
<td>  registry id of the application
 
386
</td>
 
387
</tr>
 
388
<tr>
 
389
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
 
390
<td> target key
 
391
</td>
 
392
</tr>
 
393
<tr>
 
394
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
 
395
<td> value to set the target key to
 
396
</td>
 
397
</tr>
 
398
</tbody>
 
399
</table></div>
 
400
</div>
 
401
<hr>
 
402
<div class="refsect2" lang="en">
 
403
<a name="gnome-vfs-application-registry-set-bool-value"></a><h3>gnome_vfs_application_registry_set_bool_value ()</h3>
 
404
<pre class="programlisting">void                gnome_vfs_application_registry_set_bool_value
 
405
                                                        (const char *app_id,
 
406
                                                         const char *key,
 
407
                                                         gboolean value);</pre>
 
408
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
409
<h3 class="title">Warning</h3>
 
410
<p><code class="literal">gnome_vfs_application_registry_set_bool_value</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
411
deprecated. Use the functions available in gnome-mime-handlers
 
412
instead.</p>
 
413
</div>
 
414
<p>
 
415
This function will modify those registry values that are of type boolean to
 
416
a value specified by the user.  You will need to call
 
417
gnome_vfs_application_registry_sync to save your changes.</p>
 
418
<p>
 
419
</p>
 
420
<div class="variablelist"><table border="0">
 
421
<col align="left" valign="top">
 
422
<tbody>
 
423
<tr>
 
424
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
425
<td>  registry id of the application
 
426
</td>
 
427
</tr>
 
428
<tr>
 
429
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
 
430
<td> target key
 
431
</td>
 
432
</tr>
 
433
<tr>
 
434
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
 
435
<td> value you want to set the target key to
 
436
</td>
 
437
</tr>
 
438
</tbody>
 
439
</table></div>
 
440
</div>
 
441
<hr>
 
442
<div class="refsect2" lang="en">
 
443
<a name="gnome-vfs-application-registry-unset-key"></a><h3>gnome_vfs_application_registry_unset_key ()</h3>
 
444
<pre class="programlisting">void                gnome_vfs_application_registry_unset_key
 
445
                                                        (const char *app_id,
 
446
                                                         const char *key);</pre>
 
447
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
448
<h3 class="title">Warning</h3>
 
449
<p><code class="literal">gnome_vfs_application_registry_unset_key</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
450
deprecated. Use the functions available in gnome-mime-handlers
 
451
instead.</p>
 
452
</div>
 
453
<p>
 
454
This function given the application and the target will wipe the current
 
455
value that the key contains.</p>
 
456
<p>
 
457
</p>
 
458
<div class="variablelist"><table border="0">
 
459
<col align="left" valign="top">
 
460
<tbody>
 
461
<tr>
 
462
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
463
<td> registry id of the application
 
464
</td>
 
465
</tr>
 
466
<tr>
 
467
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
 
468
<td> search key
 
469
</td>
 
470
</tr>
 
471
</tbody>
 
472
</table></div>
 
473
</div>
 
474
<hr>
 
475
<div class="refsect2" lang="en">
 
476
<a name="gnome-vfs-application-registry-get-applications"></a><h3>gnome_vfs_application_registry_get_applications ()</h3>
 
477
<pre class="programlisting">GList *             gnome_vfs_application_registry_get_applications
 
478
                                                        (const char *mime_type);</pre>
 
479
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
480
<h3 class="title">Warning</h3>
 
481
<p><code class="literal">gnome_vfs_application_registry_get_applications</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
482
deprecated. Use the functions available in gnome-mime-handlers
 
483
instead.</p>
 
484
</div>
 
485
<p>
 
486
This will return all applications from the registry that are associated with
 
487
the given mime type string, if NULL it returns all applications.</p>
 
488
<p>
 
489
</p>
 
490
<div class="variablelist"><table border="0">
 
491
<col align="left" valign="top">
 
492
<tbody>
 
493
<tr>
 
494
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
495
<td>  mime type string
 
496
</td>
 
497
</tr>
 
498
<tr>
 
499
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
500
<td> a list of the application IDs for all applications which
 
501
support the given mime type.
 
502
 
 
503
</td>
 
504
</tr>
 
505
</tbody>
 
506
</table></div>
 
507
</div>
 
508
<hr>
 
509
<div class="refsect2" lang="en">
 
510
<a name="gnome-vfs-application-registry-get-mime-types"></a><h3>gnome_vfs_application_registry_get_mime_types ()</h3>
 
511
<pre class="programlisting">GList *             gnome_vfs_application_registry_get_mime_types
 
512
                                                        (const char *app_id);</pre>
 
513
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
514
<h3 class="title">Warning</h3>
 
515
<p><code class="literal">gnome_vfs_application_registry_get_mime_types</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
516
deprecated. Use the functions available in gnome-mime-handlers
 
517
instead.</p>
 
518
</div>
 
519
<p>
 
520
This function returns a list of strings that represent the mime
 
521
types that can be handled by an application.</p>
 
522
<p>
 
523
</p>
 
524
<div class="variablelist"><table border="0">
 
525
<col align="left" valign="top">
 
526
<tbody>
 
527
<tr>
 
528
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
529
<td> registry id of application
 
530
</td>
 
531
</tr>
 
532
<tr>
 
533
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
534
<td> a list of the mime types supported
 
535
 
 
536
</td>
 
537
</tr>
 
538
</tbody>
 
539
</table></div>
 
540
</div>
 
541
<hr>
 
542
<div class="refsect2" lang="en">
 
543
<a name="gnome-vfs-application-registry-supports-mime-type"></a><h3>gnome_vfs_application_registry_supports_mime_type ()</h3>
 
544
<pre class="programlisting">gboolean            gnome_vfs_application_registry_supports_mime_type
 
545
                                                        (const char *app_id,
 
546
                                                         const char *mime_type);</pre>
 
547
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
548
<h3 class="title">Warning</h3>
 
549
<p><code class="literal">gnome_vfs_application_registry_supports_mime_type</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
550
deprecated. Use the functions available in gnome-mime-handlers
 
551
instead.</p>
 
552
</div>
 
553
<p>
 
554
Use this function to see if there is an application associated with a given
 
555
mime type.  The function will return true or false.</p>
 
556
<p>
 
557
</p>
 
558
<div class="variablelist"><table border="0">
 
559
<col align="left" valign="top">
 
560
<tbody>
 
561
<tr>
 
562
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
563
<td> registry id of application
 
564
</td>
 
565
</tr>
 
566
<tr>
 
567
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
568
<td> mime type string
 
569
</td>
 
570
</tr>
 
571
<tr>
 
572
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
573
<td> TRUE if <em class="parameter"><code>app_id</code></em> supports <em class="parameter"><code>mime_type</code></em>, otherwise FALSE.
 
574
 
 
575
</td>
 
576
</tr>
 
577
</tbody>
 
578
</table></div>
 
579
</div>
 
580
<hr>
 
581
<div class="refsect2" lang="en">
 
582
<a name="gnome-vfs-application-registry-supports-uri-scheme"></a><h3>gnome_vfs_application_registry_supports_uri_scheme ()</h3>
 
583
<pre class="programlisting">gboolean            gnome_vfs_application_registry_supports_uri_scheme
 
584
                                                        (const char *app_id,
 
585
                                                         const char *uri_scheme);</pre>
 
586
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
587
<h3 class="title">Warning</h3>
 
588
<p><code class="literal">gnome_vfs_application_registry_supports_uri_scheme</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
589
deprecated. Use the functions available in gnome-mime-handlers
 
590
instead.</p>
 
591
</div>
 
592
<p>
 
593
Given the id of the application this function will determine if the
 
594
uri scheme will given is supported.</p>
 
595
<p>
 
596
</p>
 
597
<div class="variablelist"><table border="0">
 
598
<col align="left" valign="top">
 
599
<tbody>
 
600
<tr>
 
601
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
602
<td> registry id of application
 
603
</td>
 
604
</tr>
 
605
<tr>
 
606
<td><p><span class="term"><em class="parameter"><code>uri_scheme</code></em> :</span></p></td>
 
607
<td> uri schme string
 
608
</td>
 
609
</tr>
 
610
<tr>
 
611
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
612
<td> TRUE if <em class="parameter"><code>app_id</code></em> supports <em class="parameter"><code>uri_scheme</code></em>, otherwise FALSE
 
613
 
 
614
</td>
 
615
</tr>
 
616
</tbody>
 
617
</table></div>
 
618
</div>
 
619
<hr>
 
620
<div class="refsect2" lang="en">
 
621
<a name="gnome-vfs-application-is-user-owned-application"></a><h3>gnome_vfs_application_is_user_owned_application ()</h3>
 
622
<pre class="programlisting">gboolean            gnome_vfs_application_is_user_owned_application
 
623
                                                        (const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
 
624
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
625
<h3 class="title">Warning</h3>
 
626
<p><code class="literal">gnome_vfs_application_is_user_owned_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
627
deprecated. Use the functions available in gnome-mime-handlers
 
628
instead.</p>
 
629
</div>
 
630
<p>
 
631
This function will determine if a mime application is user owned or not.  By
 
632
user ownered this means that the application is not a system application
 
633
located in the prerequisite /usr area but rather in the user's area.</p>
 
634
<p>
 
635
</p>
 
636
<div class="variablelist"><table border="0">
 
637
<col align="left" valign="top">
 
638
<tbody>
 
639
<tr>
 
640
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
 
641
<td>  data structure of the mime application
 
642
</td>
 
643
</tr>
 
644
<tr>
 
645
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
646
<td> gboolean
 
647
 
 
648
</td>
 
649
</tr>
 
650
</tbody>
 
651
</table></div>
 
652
</div>
 
653
<hr>
 
654
<div class="refsect2" lang="en">
 
655
<a name="gnome-vfs-application-registry-clear-mime-types"></a><h3>gnome_vfs_application_registry_clear_mime_types ()</h3>
 
656
<pre class="programlisting">void                gnome_vfs_application_registry_clear_mime_types
 
657
                                                        (const char *app_id);</pre>
 
658
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
659
<h3 class="title">Warning</h3>
 
660
<p><code class="literal">gnome_vfs_application_registry_clear_mime_types</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
661
deprecated. Use the functions available in gnome-mime-handlers
 
662
instead.</p>
 
663
</div>
 
664
<p>
 
665
This function will remove the mime types associated with the application.
 
666
Changes are not realized until the  gnome_vfs_application_registry_sync
 
667
function is called to save the changes to the file.</p>
 
668
<p>
 
669
</p>
 
670
<div class="variablelist"><table border="0">
 
671
<col align="left" valign="top">
 
672
<tbody><tr>
 
673
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
674
<td> Application id
 
675
</td>
 
676
</tr></tbody>
 
677
</table></div>
 
678
</div>
 
679
<hr>
 
680
<div class="refsect2" lang="en">
 
681
<a name="gnome-vfs-application-registry-add-mime-type"></a><h3>gnome_vfs_application_registry_add_mime_type ()</h3>
 
682
<pre class="programlisting">void                gnome_vfs_application_registry_add_mime_type
 
683
                                                        (const char *app_id,
 
684
                                                         const char *mime_type);</pre>
 
685
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
686
<h3 class="title">Warning</h3>
 
687
<p><code class="literal">gnome_vfs_application_registry_add_mime_type</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
688
deprecated. Use the functions available in gnome-mime-handlers
 
689
instead.</p>
 
690
</div>
 
691
<p>
 
692
This function will associate a mime type with an application given the   
 
693
application registry id and the mime type.  Changes are not realized until
 
694
the gnome_vfs_application_registry_sync function is called to save the
 
695
changes to the file.</p>
 
696
<p>
 
697
</p>
 
698
<div class="variablelist"><table border="0">
 
699
<col align="left" valign="top">
 
700
<tbody>
 
701
<tr>
 
702
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
703
<td> registry id of application
 
704
</td>
 
705
</tr>
 
706
<tr>
 
707
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
708
<td> mime type string
 
709
</td>
 
710
</tr>
 
711
</tbody>
 
712
</table></div>
 
713
</div>
 
714
<hr>
 
715
<div class="refsect2" lang="en">
 
716
<a name="gnome-vfs-application-registry-remove-mime-type"></a><h3>gnome_vfs_application_registry_remove_mime_type ()</h3>
 
717
<pre class="programlisting">void                gnome_vfs_application_registry_remove_mime_type
 
718
                                                        (const char *app_id,
 
719
                                                         const char *mime_type);</pre>
 
720
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
721
<h3 class="title">Warning</h3>
 
722
<p><code class="literal">gnome_vfs_application_registry_remove_mime_type</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
723
deprecated. Use the functions available in gnome-mime-handlers
 
724
instead.</p>
 
725
</div>
 
726
<p>
 
727
This function will de-associate a mime type from an application registry.  
 
728
Given the application registry id and the mime type.  Changes are not
 
729
realized until the gnome_vfs_application_registry_sync function is called to
 
730
save the changes to the file.</p>
 
731
<p>
 
732
</p>
 
733
<div class="variablelist"><table border="0">
 
734
<col align="left" valign="top">
 
735
<tbody>
 
736
<tr>
 
737
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
738
<td> registry id of the application
 
739
</td>
 
740
</tr>
 
741
<tr>
 
742
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
 
743
<td> mime type string
 
744
</td>
 
745
</tr>
 
746
</tbody>
 
747
</table></div>
 
748
</div>
 
749
<hr>
 
750
<div class="refsect2" lang="en">
 
751
<a name="gnome-vfs-application-registry-sync"></a><h3>gnome_vfs_application_registry_sync ()</h3>
 
752
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a>      gnome_vfs_application_registry_sync (void);</pre>
 
753
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
754
<h3 class="title">Warning</h3>
 
755
<p><code class="literal">gnome_vfs_application_registry_sync</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
756
deprecated. Use the functions available in gnome-mime-handlers
 
757
instead.</p>
 
758
</div>
 
759
<p>
 
760
This function will sync the registry.  Typically you would use this function
 
761
after a modification of the registry.  When you modify the registry a dirty
 
762
flag is set.  Calling this function will save your modifications to disk and
 
763
reset the flag.
 
764
</p>
 
765
<p>
 
766
If successful, will return GNOME_VFS_OK</p>
 
767
<p>
 
768
</p>
 
769
<div class="variablelist"><table border="0">
 
770
<col align="left" valign="top">
 
771
<tbody><tr>
 
772
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
773
<td> GnomeVFSResult
 
774
 
 
775
</td>
 
776
</tr></tbody>
 
777
</table></div>
 
778
</div>
 
779
<hr>
 
780
<div class="refsect2" lang="en">
 
781
<a name="gnome-vfs-application-registry-shutdown"></a><h3>gnome_vfs_application_registry_shutdown ()</h3>
 
782
<pre class="programlisting">void                gnome_vfs_application_registry_shutdown
 
783
                                                        (void);</pre>
 
784
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
785
<h3 class="title">Warning</h3>
 
786
<p><code class="literal">gnome_vfs_application_registry_shutdown</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
787
deprecated. Use the functions available in gnome-mime-handlers
 
788
instead.</p>
 
789
</div>
 
790
<p>
 
791
Synchronize gnome-vfs application registry data to disk, and free
 
792
resources.</p>
 
793
<p>
 
794
</p>
 
795
</div>
 
796
<hr>
 
797
<div class="refsect2" lang="en">
 
798
<a name="gnome-vfs-application-registry-reload"></a><h3>gnome_vfs_application_registry_reload ()</h3>
 
799
<pre class="programlisting">void                gnome_vfs_application_registry_reload
 
800
                                                        (void);</pre>
 
801
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
802
<h3 class="title">Warning</h3>
 
803
<p><code class="literal">gnome_vfs_application_registry_reload</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
804
deprecated. Use the functions available in gnome-mime-handlers
 
805
instead.</p>
 
806
</div>
 
807
<p>
 
808
If this function is called for the first time it will initialize the
 
809
registry.  Subsequent calls to the function will clear out the current
 
810
registry contents and load registry contents from the save file.  Make
 
811
certain that you've saved your registry before calling this function.  It
 
812
will destroy unsaved changes.</p>
 
813
<p>
 
814
</p>
 
815
</div>
 
816
<hr>
 
817
<div class="refsect2" lang="en">
 
818
<a name="gnome-vfs-application-registry-get-mime-application"></a><h3>gnome_vfs_application_registry_get_mime_application ()</h3>
 
819
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_application_registry_get_mime_application
 
820
                                                        (const char *app_id);</pre>
 
821
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
822
<h3 class="title">Warning</h3>
 
823
<p><code class="literal">gnome_vfs_application_registry_get_mime_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
824
deprecated. Use the functions available in gnome-mime-handlers
 
825
instead.</p>
 
826
</div>
 
827
<p>
 
828
Returns a structure that contains the application that handles
 
829
the mime type associated by the application referred by app_id.</p>
 
830
<p>
 
831
</p>
 
832
<div class="variablelist"><table border="0">
 
833
<col align="left" valign="top">
 
834
<tbody>
 
835
<tr>
 
836
<td><p><span class="term"><em class="parameter"><code>app_id</code></em> :</span></p></td>
 
837
<td>  registry id of the application
 
838
</td>
 
839
</tr>
 
840
<tr>
 
841
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
842
<td> GnomeVFSMimeApplication
 
843
 
 
844
</td>
 
845
</tr>
 
846
</tbody>
 
847
</table></div>
 
848
</div>
 
849
<hr>
 
850
<div class="refsect2" lang="en">
 
851
<a name="gnome-vfs-application-registry-save-mime-application"></a><h3>gnome_vfs_application_registry_save_mime_application ()</h3>
 
852
<pre class="programlisting">void                gnome_vfs_application_registry_save_mime_application
 
853
                                                        (const <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
 
854
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
855
<h3 class="title">Warning</h3>
 
856
<p><code class="literal">gnome_vfs_application_registry_save_mime_application</code> is deprecated and should not be used in newly-written code. All application registry functions have been
 
857
deprecated. Use the functions available in gnome-mime-handlers
 
858
instead.</p>
 
859
</div>
 
860
<p>
 
861
This will save to the registry the application that will be associated with
 
862
a defined mime type.  The defined mime type is located within the
 
863
GnomeVFSMimeApplication structure.  Changes are not realized until the
 
864
gnome_vfs_application_registry_sync function is called.</p>
 
865
<p>
 
866
</p>
 
867
<div class="variablelist"><table border="0">
 
868
<col align="left" valign="top">
 
869
<tbody><tr>
 
870
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
 
871
<td> application associated with the mime type
 
872
</td>
 
873
</tr></tbody>
 
874
</table></div>
 
875
</div>
 
876
</div>
 
877
<div class="refsect1" lang="en">
 
878
<a name="gnome-vfs-2.0-gnome-vfs-application-registry.see-also"></a><h2>See Also</h2>
 
879
<p>
 
880
<span class="type">GnomeVFS MIME Database API</span>
 
881
</p>
 
882
</div>
 
883
</div>
 
884
<div class="footer">
 
885
<hr>
 
886
          Generated by GTK-Doc V1.12</div>
 
887
</body>
 
888
</html>