1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>MIME Database</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-utils.html" title="gnome-vfs-mime-utils">
10
<link rel="next" href="gnome-vfs-2.0-gnome-vfs-mime-monitor.html" title="gnome-vfs-mime-monitor">
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">
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">
27
<td><a accesskey="p" href="gnome-vfs-2.0-gnome-vfs-mime-utils.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="gnome-vfs-2.0-gnome-vfs-mime-monitor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
33
<tr><td colspan="5" class="shortcuts">
34
<a href="#gnome-vfs-2.0-gnome-vfs-mime-database.synopsis" class="shortcut">Top</a>
36
<a href="#gnome-vfs-2.0-gnome-vfs-mime-database.description" class="shortcut">Description</a>
39
<div class="refentry" lang="en">
40
<a name="gnome-vfs-2.0-gnome-vfs-mime-database"></a><div class="titlepage"></div>
41
<div class="refnamediv"><table width="100%"><tr>
43
<h2><span class="refentrytitle"><a name="gnome-vfs-2.0-gnome-vfs-mime-database.top_of_page"></a>MIME Database</span></h2>
44
<p>MIME Database — functions for getting information about applications and components associated with MIME types.</p>
46
<td valign="top" align="right"></td>
48
<div class="refsynopsisdiv">
49
<a name="gnome-vfs-2.0-gnome-vfs-mime-database.synopsis"></a><h2>Synopsis</h2>
50
<pre class="synopsis">
51
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a>;
52
<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-mime-database.html#gnome-vfs-mime-get-default-application" title="gnome_vfs_mime_get_default_application ()">gnome_vfs_mime_get_default_application</a>
53
(const char *mime_type);
54
<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-mime-database.html#gnome-vfs-mime-get-default-application-for-uri" title="gnome_vfs_mime_get_default_application_for_uri ()">gnome_vfs_mime_get_default_application_for_uri</a>
56
const char *mime_type);
57
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-applications" title="gnome_vfs_mime_get_all_applications ()">gnome_vfs_mime_get_all_applications</a> (const char *mime_type);
58
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-applications-for-uri" title="gnome_vfs_mime_get_all_applications_for_uri ()">gnome_vfs_mime_get_all_applications_for_uri</a>
60
const char *mime_type);
61
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-desktop-entries" title="gnome_vfs_mime_get_all_desktop_entries ()">gnome_vfs_mime_get_all_desktop_entries</a>
62
(const char *mime_type);
63
gchar * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-desktop-entry" title="gnome_vfs_mime_get_default_desktop_entry ()">gnome_vfs_mime_get_default_desktop_entry</a>
64
(const char *mime_type);
65
Bonobo_ServerInfo * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-default-component" title="gnome_vfs_mime_get_default_component ()">gnome_vfs_mime_get_default_component</a>
66
(const char *mime_type);
67
GList * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-all-components" title="gnome_vfs_mime_get_all_components ()">gnome_vfs_mime_get_all_components</a> (const char *mime_type);
68
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-icon" title="gnome_vfs_mime_get_icon ()">gnome_vfs_mime_get_icon</a> (const char *mime_type);
69
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-get-description" title="gnome_vfs_mime_get_description ()">gnome_vfs_mime_get_description</a> (const char *mime_type);
70
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-can-be-executable" title="gnome_vfs_mime_can_be_executable ()">gnome_vfs_mime_can_be_executable</a> (const char *mime_type);
71
<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-mime-database.html#gnome-vfs-mime-application-new-from-desktop-id" title="gnome_vfs_mime_application_new_from_desktop_id ()">gnome_vfs_mime_application_new_from_desktop_id</a>
73
<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-mime-database.html#gnome-vfs-mime-application-launch" title="gnome_vfs_mime_application_launch ()">gnome_vfs_mime_application_launch</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
75
<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-mime-database.html#gnome-vfs-mime-application-launch-with-env" title="gnome_vfs_mime_application_launch_with_env ()">gnome_vfs_mime_application_launch_with_env</a>
76
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
79
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-desktop-id" title="gnome_vfs_mime_application_get_desktop_id ()">gnome_vfs_mime_application_get_desktop_id</a>
80
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
81
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-desktop-file-path" title="gnome_vfs_mime_application_get_desktop_file_path ()">gnome_vfs_mime_application_get_desktop_file_path</a>
82
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
83
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-name" title="gnome_vfs_mime_application_get_name ()">gnome_vfs_mime_application_get_name</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
84
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-generic-name" title="gnome_vfs_mime_application_get_generic_name ()">gnome_vfs_mime_application_get_generic_name</a>
85
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
86
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-icon" title="gnome_vfs_mime_application_get_icon ()">gnome_vfs_mime_application_get_icon</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
87
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-exec" title="gnome_vfs_mime_application_get_exec ()">gnome_vfs_mime_application_get_exec</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
88
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-binary-name" title="gnome_vfs_mime_application_get_binary_name ()">gnome_vfs_mime_application_get_binary_name</a>
89
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
90
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-requires-terminal" title="gnome_vfs_mime_application_requires_terminal ()">gnome_vfs_mime_application_requires_terminal</a>
91
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
92
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-supports-uris" title="gnome_vfs_mime_application_supports_uris ()">gnome_vfs_mime_application_supports_uris</a>
93
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
94
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-supports-startup-notification" title="gnome_vfs_mime_application_supports_startup_notification ()">gnome_vfs_mime_application_supports_startup_notification</a>
95
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
96
const char * <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-startup-wm-class" title="gnome_vfs_mime_application_get_startup_wm_class ()">gnome_vfs_mime_application_get_startup_wm_class</a>
97
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);
98
gboolean <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-equal" title="gnome_vfs_mime_application_equal ()">gnome_vfs_mime_application_equal</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_a,
99
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_b);
100
<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-mime-database.html#gnome-vfs-mime-application-copy" title="gnome_vfs_mime_application_copy ()">gnome_vfs_mime_application_copy</a>
101
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
102
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-free" title="gnome_vfs_mime_application_free ()">gnome_vfs_mime_application_free</a> (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);
103
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-list-free" title="gnome_vfs_mime_application_list_free ()">gnome_vfs_mime_application_list_free</a>
105
void <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-component-list-free" title="gnome_vfs_mime_component_list_free ()">gnome_vfs_mime_component_list_free</a> (GList *list);
108
<div class="refsect1" lang="en">
109
<a name="gnome-vfs-2.0-gnome-vfs-mime-database.description"></a><h2>Description</h2>
111
This API can be used to query the applications and components associated with particular MIME types,
112
and to collect extra information about them, and also provides a convenience function for launching
114
Applications can register themselves for particular MIME types by adhering to the
115
<a class="ulink" href="http://standards.freedesktop.org/desktop-entry-spec/latest" target="_top">
116
Freedesktop.Org Desktop Entry Specification</a>.
119
<div class="refsect1" lang="en">
120
<a name="gnome-vfs-2.0-gnome-vfs-mime-database.details"></a><h2>Details</h2>
121
<div class="refsect2" lang="en">
122
<a name="GnomeVFSMimeApplication"></a><h3>GnomeVFSMimeApplication</h3>
123
<pre class="programlisting">typedef struct {
126
} GnomeVFSMimeApplication;
129
A struct encapsulating information about an
130
application known to the MIME database.
133
Only very few fields of this information are actually
134
public, most of them must be queried using the
135
<code class="literal">gnome_vfs_mime_application_*()</code>
139
<div class="variablelist"><table border="0">
140
<col align="left" valign="top">
143
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSMimeApplication.id"></a>id</code></em>;</span></p></td>
144
<td> The desktop ID of the application.
148
<td><p><span class="term">char *<em class="structfield"><code><a name="GnomeVFSMimeApplication.name"></a>name</code></em>;</span></p></td>
149
<td> The user-visible name of the application.
156
<div class="refsect2" lang="en">
157
<a name="gnome-vfs-mime-get-default-application"></a><h3>gnome_vfs_mime_get_default_application ()</h3>
158
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_get_default_application
159
(const char *mime_type);</pre>
161
Query the MIME database for the application to be executed on files of MIME type
162
<em class="parameter"><code>mime_type</code></em> by default.
165
If you know the actual uri of the file you should use gnome_vfs_mime_get_default_application_for_uri
166
instead, as it will then be able to pick a better app. For instance it won't pick
167
an app that claims to only handle local files for a remote uri.</p>
170
<div class="variablelist"><table border="0">
171
<col align="left" valign="top">
174
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
175
<td> a const char * containing a mime type, e.g. "image/png".
179
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
180
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> representing the default handler of <em class="parameter"><code>mime_type</code></em>.
187
<div class="refsect2" lang="en">
188
<a name="gnome-vfs-mime-get-default-application-for-uri"></a><h3>gnome_vfs_mime_get_default_application_for_uri ()</h3>
189
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_get_default_application_for_uri
191
const char *mime_type);</pre>
194
<div class="variablelist"><table border="0">
195
<col align="left" valign="top">
198
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
203
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
208
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
216
<div class="refsect2" lang="en">
217
<a name="gnome-vfs-mime-get-all-applications"></a><h3>gnome_vfs_mime_get_all_applications ()</h3>
218
<pre class="programlisting">GList * gnome_vfs_mime_get_all_applications (const char *mime_type);</pre>
220
Return an alphabetically sorted list of <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a>
221
data structures representing all applications in the MIME database registered
222
to handle files of MIME type <em class="parameter"><code>mime_type</code></em> (and supertypes).</p>
225
<div class="variablelist"><table border="0">
226
<col align="left" valign="top">
229
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
230
<td> a const char * containing a mime type, e.g. "image/png".
234
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
235
<td> a <span class="type">GList</span> * where the elements are <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> *
236
representing applications that handle MIME type <em class="parameter"><code>mime_type</code></em>.
243
<div class="refsect2" lang="en">
244
<a name="gnome-vfs-mime-get-all-applications-for-uri"></a><h3>gnome_vfs_mime_get_all_applications_for_uri ()</h3>
245
<pre class="programlisting">GList * gnome_vfs_mime_get_all_applications_for_uri
247
const char *mime_type);</pre>
249
Return an alphabetically sorted list of <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a>
250
data structures representing all applications in the MIME database able
251
to handle the file identified by <em class="parameter"><code>uri</code></em> of <em class="parameter"><code>mime_type</code></em> (and supertypes).</p>
254
<div class="variablelist"><table border="0">
255
<col align="left" valign="top">
258
<td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
259
<td> a stringified uri.
263
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
264
<td> a const char * containing a mime type, e.g. "application/x-php".
268
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
269
<td> a <span class="type">GList</span> * where the elements are <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> *
270
representing all possible handlers
276
<p class="since">Since 2.10</p>
279
<div class="refsect2" lang="en">
280
<a name="gnome-vfs-mime-get-all-desktop-entries"></a><h3>gnome_vfs_mime_get_all_desktop_entries ()</h3>
281
<pre class="programlisting">GList * gnome_vfs_mime_get_all_desktop_entries
282
(const char *mime_type);</pre>
283
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
284
<h3 class="title">Warning</h3>
285
<p><code class="literal">gnome_vfs_mime_get_all_desktop_entries</code> is deprecated and should not be used in newly-written code.</p>
288
Returns all the desktop filenames for <em class="parameter"><code>mime_type</code></em>. The desktop files
289
are listed in an order so that default applications are listed before
290
non-default ones, and handlers for inherited mimetypes are listed
291
after the base ones.</p>
294
<div class="variablelist"><table border="0">
295
<col align="left" valign="top">
298
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
303
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
304
<td> a <span class="type">GList</span> containing the desktop filenames containing the
305
<em class="parameter"><code>mime_type</code></em>.
312
<div class="refsect2" lang="en">
313
<a name="gnome-vfs-mime-get-default-desktop-entry"></a><h3>gnome_vfs_mime_get_default_desktop_entry ()</h3>
314
<pre class="programlisting">gchar * gnome_vfs_mime_get_default_desktop_entry
315
(const char *mime_type);</pre>
316
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
317
<h3 class="title">Warning</h3>
318
<p><code class="literal">gnome_vfs_mime_get_default_desktop_entry</code> is deprecated and should not be used in newly-written code.</p>
321
Returns the default desktop filename for <em class="parameter"><code>mime_type</code></em>.</p>
324
<div class="variablelist"><table border="0">
325
<col align="left" valign="top">
328
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
333
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
334
<td> the default desktop filename for <em class="parameter"><code>mime_type</code></em>.
341
<div class="refsect2" lang="en">
342
<a name="gnome-vfs-mime-get-default-component"></a><h3>gnome_vfs_mime_get_default_component ()</h3>
343
<pre class="programlisting">Bonobo_ServerInfo * gnome_vfs_mime_get_default_component
344
(const char *mime_type);</pre>
345
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
346
<h3 class="title">Warning</h3>
347
<p><code class="literal">gnome_vfs_mime_get_default_component</code> is deprecated and should not be used in newly-written code.</p>
351
<div class="variablelist"><table border="0">
352
<col align="left" valign="top">
355
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
360
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
368
<div class="refsect2" lang="en">
369
<a name="gnome-vfs-mime-get-all-components"></a><h3>gnome_vfs_mime_get_all_components ()</h3>
370
<pre class="programlisting">GList * gnome_vfs_mime_get_all_components (const char *mime_type);</pre>
371
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
372
<h3 class="title">Warning</h3>
373
<p><code class="literal">gnome_vfs_mime_get_all_components</code> is deprecated and should not be used in newly-written code.</p>
377
<div class="variablelist"><table border="0">
378
<col align="left" valign="top">
381
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
386
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
394
<div class="refsect2" lang="en">
395
<a name="gnome-vfs-mime-get-icon"></a><h3>gnome_vfs_mime_get_icon ()</h3>
396
<pre class="programlisting">const char * gnome_vfs_mime_get_icon (const char *mime_type);</pre>
397
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
398
<h3 class="title">Warning</h3>
399
<p><code class="literal">gnome_vfs_mime_get_icon</code> is deprecated and should not be used in newly-written code. Use <code class="function">gnome_icon_lookup()</code> function in libgnomeui instead.</p>
402
Query the MIME database for an icon representing the <em class="parameter"><code>mime_type</code></em>.
405
It usually returns a filename without path information, e.g. "i-chardev.png", and sometimes
406
does not have an extension, e.g. "i-regular" if the icon is supposed to be image
407
type agnostic between icon themes. Icons are generic and not theme specific. These
408
will not necessarily match with the icons a user sees in Nautilus, you have been warned.</p>
411
<div class="variablelist"><table border="0">
412
<col align="left" valign="top">
415
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
416
<td> a const char * containing a MIME type.
420
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
421
<td> The filename of the icon as listed in the MIME database.
429
<div class="refsect2" lang="en">
430
<a name="gnome-vfs-mime-get-description"></a><h3>gnome_vfs_mime_get_description ()</h3>
431
<pre class="programlisting">const char * gnome_vfs_mime_get_description (const char *mime_type);</pre>
433
Query the MIME database for a description of the <em class="parameter"><code>mime_type</code></em>.</p>
436
<div class="variablelist"><table border="0">
437
<col align="left" valign="top">
440
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
445
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
446
<td> description of MIME type <em class="parameter"><code>mime_type</code></em>.
453
<div class="refsect2" lang="en">
454
<a name="gnome-vfs-mime-can-be-executable"></a><h3>gnome_vfs_mime_can_be_executable ()</h3>
455
<pre class="programlisting">gboolean gnome_vfs_mime_can_be_executable (const char *mime_type);</pre>
457
Check whether files of <em class="parameter"><code>mime_type</code></em> might conceivably be executable.
458
Default for known types if <code class="literal">FALSE</code>. Default for unknown types is <code class="literal">TRUE</code>.</p>
461
<div class="variablelist"><table border="0">
462
<col align="left" valign="top">
465
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
466
<td> a const char * containing a mime type.
470
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
471
<td> <code class="literal">TRUE</code> if files of <em class="parameter"><code>mime_type</code></em>
472
can be executable, <code class="literal">FALSE</code> otherwise.
479
<div class="refsect2" lang="en">
480
<a name="gnome-vfs-mime-application-new-from-desktop-id"></a><h3>gnome_vfs_mime_application_new_from_desktop_id ()</h3>
481
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_application_new_from_desktop_id
482
(const char *id);</pre>
484
Returns a new <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> for the <em class="parameter"><code>id</code></em>.</p>
487
<div class="variablelist"><table border="0">
488
<col align="left" valign="top">
491
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
492
<td> the identifier of a desktop entry.
496
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
497
<td> a <span class="type">GnomeVFSMimeApplication.</span>
503
<p class="since">Since 2.10</p>
506
<div class="refsect2" lang="en">
507
<a name="gnome-vfs-mime-application-launch"></a><h3>gnome_vfs_mime_application_launch ()</h3>
508
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_mime_application_launch (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
511
Launches the given mime application with the given parameters.
512
Command line parameters will be expanded as required by the
513
application. The application will also be launched in a terminal
514
if that is required. If the application only supports one argument
515
per instance then multiple instances of the application will be
519
<div class="variablelist"><table border="0">
520
<col align="left" valign="top">
523
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
524
<td> the <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to launch.
528
<td><p><span class="term"><em class="parameter"><code>uris</code></em> :</span></p></td>
529
<td> parameters for the <span class="type">GnomeVFSMimeApplication.</span>
533
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
535
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-OK:CAPS"><code class="literal">GNOME_VFS_OK</code></a> if the application was launched.
536
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-NOT-SUPPORTED:CAPS"><code class="literal">GNOME_VFS_ERROR_NOT_SUPPORTED</code></a> if the uri protocol is not
537
supported by the application.
538
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-PARSE:CAPS"><code class="literal">GNOME_VFS_ERROR_PARSE</code></a> if the application command can not
540
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-LAUNCH:CAPS"><code class="literal">GNOME_VFS_ERROR_LAUNCH</code></a> if the application command can not
542
<a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GNOME-VFS-ERROR-INTERNAL:CAPS"><code class="literal">GNOME_VFS_ERROR_INTERNAL</code></a> for other internal and GConf errors.
548
<p class="since">Since 2.4</p>
551
<div class="refsect2" lang="en">
552
<a name="gnome-vfs-mime-application-launch-with-env"></a><h3>gnome_vfs_mime_application_launch_with_env ()</h3>
553
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-result.html#GnomeVFSResult" title="enum GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_mime_application_launch_with_env
554
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app,
558
Same as <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-launch" title="gnome_vfs_mime_application_launch ()"><code class="function">gnome_vfs_mime_application_launch()</code></a> except that
559
the application will be launched with the given environment.</p>
562
<div class="variablelist"><table border="0">
563
<col align="left" valign="top">
566
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
567
<td> the <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to launch.
571
<td><p><span class="term"><em class="parameter"><code>uris</code></em> :</span></p></td>
572
<td> parameters for the <span class="type">GnomeVFSMimeApplication.</span>
576
<td><p><span class="term"><em class="parameter"><code>envp</code></em> :</span></p></td>
577
<td> the environment to use for the application.
581
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
582
<td> same as <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-launch" title="gnome_vfs_mime_application_launch ()"><code class="function">gnome_vfs_mime_application_launch()</code></a>.
588
<p class="since">Since 2.4</p>
591
<div class="refsect2" lang="en">
592
<a name="gnome-vfs-mime-application-get-desktop-id"></a><h3>gnome_vfs_mime_application_get_desktop_id ()</h3>
593
<pre class="programlisting">const char * gnome_vfs_mime_application_get_desktop_id
594
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
596
Returns the identifier of the desktop entry.</p>
599
<div class="variablelist"><table border="0">
600
<col align="left" valign="top">
603
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
604
<td> a <span class="type">GnomeVFSMimeApplication.</span>
608
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
609
<td> the identifier of the desktop entry.
615
<p class="since">Since 2.10</p>
618
<div class="refsect2" lang="en">
619
<a name="gnome-vfs-mime-application-get-desktop-file-path"></a><h3>gnome_vfs_mime_application_get_desktop_file_path ()</h3>
620
<pre class="programlisting">const char * gnome_vfs_mime_application_get_desktop_file_path
621
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
623
Returns the path of the desktop entry, a configuration
624
file describing the properties of a particular program like
625
it's name, how it is to be launched, how it appears in menus.</p>
628
<div class="variablelist"><table border="0">
629
<col align="left" valign="top">
632
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
633
<td> a <span class="type">GnomeVFSMimeApplication.</span>
637
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
638
<td> the path of the .desktop file.
644
<p class="since">Since 2.10</p>
647
<div class="refsect2" lang="en">
648
<a name="gnome-vfs-mime-application-get-name"></a><h3>gnome_vfs_mime_application_get_name ()</h3>
649
<pre class="programlisting">const char * gnome_vfs_mime_application_get_name (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
651
Returns the name of the application <em class="parameter"><code>app</code></em></p>
654
<div class="variablelist"><table border="0">
655
<col align="left" valign="top">
658
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
659
<td> a <span class="type">GnomeVFSMimeApplication.</span>
663
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
664
<td> the name of the application.
670
<p class="since">Since 2.10</p>
673
<div class="refsect2" lang="en">
674
<a name="gnome-vfs-mime-application-get-generic-name"></a><h3>gnome_vfs_mime_application_get_generic_name ()</h3>
675
<pre class="programlisting">const char * gnome_vfs_mime_application_get_generic_name
676
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
678
Returns the generic name of the application.</p>
681
<div class="variablelist"><table border="0">
682
<col align="left" valign="top">
685
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
686
<td> a <span class="type">GnomeVFSMimeApplication.</span>
690
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
691
<td> the generic name of the application.
697
<p class="since">Since 2.10</p>
700
<div class="refsect2" lang="en">
701
<a name="gnome-vfs-mime-application-get-icon"></a><h3>gnome_vfs_mime_application_get_icon ()</h3>
702
<pre class="programlisting">const char * gnome_vfs_mime_application_get_icon (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
704
Returns an icon representing the specified application.</p>
707
<div class="variablelist"><table border="0">
708
<col align="left" valign="top">
711
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
712
<td> a <span class="type">GnomeVFSMimeApplication.</span>
716
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
717
<td> the filename of the icon usually without path information,
718
e.g. "gedit-icon.png", and sometimes does not have an extension,
719
e.g. "gnome-pdf" if the icon is supposed to be image type agnostic between
720
icon themes. Icons are generic, and not theme specific.
726
<p class="since">Since 2.10</p>
729
<div class="refsect2" lang="en">
730
<a name="gnome-vfs-mime-application-get-exec"></a><h3>gnome_vfs_mime_application_get_exec ()</h3>
731
<pre class="programlisting">const char * gnome_vfs_mime_application_get_exec (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
733
Returns the program to execute, possibly with arguments
734
and parameter variables, as specified by the
735
<a class="ulink" href="http://standards.freedesktop.org/desktop-entry-spec/" target="_top">
736
Desktop Entry Specification</a>.</p>
739
<div class="variablelist"><table border="0">
740
<col align="left" valign="top">
743
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
744
<td> a <span class="type">GnomeVFSMimeApplication.</span>
748
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
749
<td> the command line to execute.
755
<p class="since">Since 2.10</p>
758
<div class="refsect2" lang="en">
759
<a name="gnome-vfs-mime-application-get-binary-name"></a><h3>gnome_vfs_mime_application_get_binary_name ()</h3>
760
<pre class="programlisting">const char * gnome_vfs_mime_application_get_binary_name
761
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
763
Returns the binary name of the specified application.
764
Useful to implement startup notification.
765
Note that this only provides partial information about
766
application execution, it misses arguments and macros.
767
DO NOT USE it to launch the application.
768
Use gnome_vfs_mime_application_launch or
769
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#gnome-vfs-mime-application-get-exec" title="gnome_vfs_mime_application_get_exec ()"><code class="function">gnome_vfs_mime_application_get_exec()</code></a> if you really
770
need to write a custom launcher.</p>
773
<div class="variablelist"><table border="0">
774
<col align="left" valign="top">
777
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
778
<td> a <span class="type">GnomeVFSMimeApplication.</span>
782
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
783
<td> the application's binary name.
789
<p class="since">Since 2.10</p>
792
<div class="refsect2" lang="en">
793
<a name="gnome-vfs-mime-application-requires-terminal"></a><h3>gnome_vfs_mime_application_requires_terminal ()</h3>
794
<pre class="programlisting">gboolean gnome_vfs_mime_application_requires_terminal
795
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
797
Returns whether the application runs in a terminal window.</p>
800
<div class="variablelist"><table border="0">
801
<col align="left" valign="top">
804
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
805
<td> a <span class="type">GnomeVFSMimeApplication.</span>
809
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
810
<td> <code class="literal">TRUE</code> if the application runs in a terminal.
816
<p class="since">Since 2.10</p>
819
<div class="refsect2" lang="en">
820
<a name="gnome-vfs-mime-application-supports-uris"></a><h3>gnome_vfs_mime_application_supports_uris ()</h3>
821
<pre class="programlisting">gboolean gnome_vfs_mime_application_supports_uris
822
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
824
Returns whether the application accept uris as command
828
<div class="variablelist"><table border="0">
829
<col align="left" valign="top">
832
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
833
<td> a <span class="type">GnomeVFSMimeApplication.</span>
837
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
838
<td> <code class="literal">TRUE</code> if the application can handle uris.
844
<p class="since">Since 2.10</p>
847
<div class="refsect2" lang="en">
848
<a name="gnome-vfs-mime-application-supports-startup-notification"></a><h3>gnome_vfs_mime_application_supports_startup_notification ()</h3>
849
<pre class="programlisting">gboolean gnome_vfs_mime_application_supports_startup_notification
850
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
852
Returns whether the application supports startup notification.
853
If true, it is KNOWN that the application will send a
854
"remove" message when started with the DESKTOP_LAUNCH_ID
855
environment variable set.</p>
858
<div class="variablelist"><table border="0">
859
<col align="left" valign="top">
862
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
863
<td> a <span class="type">GnomeVFSMimeApplication.</span>
867
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
868
<td> <code class="literal">TRUE</code> if the application supports startup notification.
874
<p class="since">Since 2.10</p>
877
<div class="refsect2" lang="en">
878
<a name="gnome-vfs-mime-application-get-startup-wm-class"></a><h3>gnome_vfs_mime_application_get_startup_wm_class ()</h3>
879
<pre class="programlisting">const char * gnome_vfs_mime_application_get_startup_wm_class
880
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app);</pre>
882
Returns the WM class of the main window of the application.</p>
885
<div class="variablelist"><table border="0">
886
<col align="left" valign="top">
889
<td><p><span class="term"><em class="parameter"><code>app</code></em> :</span></p></td>
890
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a>
894
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
895
<td> The WM class of the application's window
901
<p class="since">Since 2.10</p>
904
<div class="refsect2" lang="en">
905
<a name="gnome-vfs-mime-application-equal"></a><h3>gnome_vfs_mime_application_equal ()</h3>
906
<pre class="programlisting">gboolean gnome_vfs_mime_application_equal (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_a,
907
<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *app_b);</pre>
909
Compare <em class="parameter"><code>app_a</code></em> and <em class="parameter"><code>app_b</code></em>.</p>
912
<div class="variablelist"><table border="0">
913
<col align="left" valign="top">
916
<td><p><span class="term"><em class="parameter"><code>app_a</code></em> :</span></p></td>
917
<td> a <span class="type">GnomeVFSMimeApplication.</span>
921
<td><p><span class="term"><em class="parameter"><code>app_b</code></em> :</span></p></td>
922
<td> a <span class="type">GnomeVFSMimeApplication.</span>
926
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
927
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>app_a</code></em> and <em class="parameter"><code>app_b</code></em> are equal, <code class="literal">FALSE</code> otherwise.
933
<p class="since">Since 2.10</p>
936
<div class="refsect2" lang="en">
937
<a name="gnome-vfs-mime-application-copy"></a><h3>gnome_vfs_mime_application_copy ()</h3>
938
<pre class="programlisting"><a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> * gnome_vfs_mime_application_copy
939
(<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
941
Creates a newly referenced copy of a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> object.</p>
944
<div class="variablelist"><table border="0">
945
<col align="left" valign="top">
948
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
949
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to be duplicated.
953
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
954
<td> a copy of <em class="parameter"><code>application</code></em>.
961
<div class="refsect2" lang="en">
962
<a name="gnome-vfs-mime-application-free"></a><h3>gnome_vfs_mime_application_free ()</h3>
963
<pre class="programlisting">void gnome_vfs_mime_application_free (<a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication">GnomeVFSMimeApplication</a> *application);</pre>
965
Frees a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> *.</p>
968
<div class="variablelist"><table border="0">
969
<col align="left" valign="top">
971
<td><p><span class="term"><em class="parameter"><code>application</code></em> :</span></p></td>
972
<td> a <a class="link" href="gnome-vfs-2.0-gnome-vfs-mime-database.html#GnomeVFSMimeApplication" title="GnomeVFSMimeApplication"><span class="type">GnomeVFSMimeApplication</span></a> to be freed.
978
<div class="refsect2" lang="en">
979
<a name="gnome-vfs-mime-application-list-free"></a><h3>gnome_vfs_mime_application_list_free ()</h3>
980
<pre class="programlisting">void gnome_vfs_mime_application_list_free
983
Frees lists of <span class="type">GnomeVFSApplications</span>, as returned from functions such
984
as <code class="function">gnome_vfs_get_all_applications()</code>.</p>
987
<div class="variablelist"><table border="0">
988
<col align="left" valign="top">
990
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
991
<td> a <span class="type">GList</span> of <span class="type">GnomeVFSApplication</span> * to be freed.
997
<div class="refsect2" lang="en">
998
<a name="gnome-vfs-mime-component-list-free"></a><h3>gnome_vfs_mime_component_list_free ()</h3>
999
<pre class="programlisting">void gnome_vfs_mime_component_list_free (GList *list);</pre>
1000
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1001
<h3 class="title">Warning</h3>
1002
<p><code class="literal">gnome_vfs_mime_component_list_free</code> is deprecated and should not be used in newly-written code.</p>
1006
<div class="variablelist"><table border="0">
1007
<col align="left" valign="top">
1009
<td><p><span class="term"><em class="parameter"><code>list</code></em> :</span></p></td>
1017
<div class="footer">
1019
Generated by GTK-Doc V1.12</div>