~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to docs/reference/gio/html/gio-Desktop-file-based-GAppInfo.html

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
 
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Desktop file based GAppInfo</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
 
<link rel="start" href="index.html" title="GIO Reference Manual">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
 
7
<link rel="home" href="index.html" title="GIO Reference Manual">
8
8
<link rel="up" href="types.html" title="File types and applications">
9
9
<link rel="prev" href="GAppInfo.html" title="GAppInfo">
10
10
<link rel="next" href="volume_mon.html" title="Volumes and Drives">
11
 
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="pt01.html" title="Part&#160;I.&#160;GIO Overview">
 
13
<link rel="part" href="pt01.html" title="Part I. GIO Overview">
14
14
<link rel="chapter" href="ch01.html" title="Introduction">
15
15
<link rel="chapter" href="ch02.html" title="Compiling GIO applications">
16
16
<link rel="chapter" href="ch03.html" title="Running GIO applications">
17
 
<link rel="chapter" href="gio-extension-points.html" title="Extending GIO">
18
 
<link rel="part" href="pt02.html" title="Part&#160;II.&#160;API Reference">
 
17
<link rel="chapter" href="extending-gio.html" title="Extending GIO">
 
18
<link rel="part" href="pt02.html" title="Part II. API Reference">
19
19
<link rel="chapter" href="file_ops.html" title="File Operations">
20
20
<link rel="chapter" href="file_mon.html" title="File System Monitoring">
21
21
<link rel="chapter" href="async.html" title="Asynchronous I/O">
25
25
<link rel="chapter" href="icons.html" title="Icons">
26
26
<link rel="chapter" href="utils.html" title="Utilities">
27
27
<link rel="chapter" href="extending.html" title="Extending GIO">
28
 
<link rel="part" href="migrating.html" title="Part&#160;III.&#160;Migrating to GIO">
 
28
<link rel="part" href="migrating.html" title="Part III. Migrating to GIO">
29
29
<link rel="chapter" href="ch14.html" title="Migrating from POSIX to GIO">
30
30
<link rel="chapter" href="ch15.html" title="Migrating from GnomeVFS to GIO">
31
31
<link rel="chapter" href="gio-hierarchy.html" title="Object Hierarchy">
32
32
<link rel="index" href="ix01.html" title="Index">
 
33
<link rel="index" href="ix02.html" title="Index of new symbols in 2.18">
33
34
</head>
34
35
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
35
36
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
40
41
<th width="100%" align="center">GIO Reference Manual</th>
41
42
<td><a accesskey="n" href="volume_mon.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
42
43
</tr>
43
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2769372" class="shortcut">Top</a>
44
 
                  &#160;|&#160;
45
 
                  <a href="#id2878828" class="shortcut">Description</a>
46
 
                  &#160;|&#160;
47
 
                  <a href="#id2878783" class="shortcut">Object Hierarchy</a>
48
 
                  &#160;|&#160;
49
 
                  <a href="#id2878807" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
 
44
<tr><td colspan="5" class="shortcuts">
 
45
<a href="#gio-Desktop-file-based-GAppInfo.synopsis" class="shortcut">Top</a>
 
46
                 | 
 
47
                <a href="#gio-Desktop-file-based-GAppInfo.description" class="shortcut">Description</a>
 
48
                 | 
 
49
                <a href="#gio-Desktop-file-based-GAppInfo.object-hierarchy" class="shortcut">Object Hierarchy</a>
 
50
                 | 
 
51
                <a href="#gio-Desktop-file-based-GAppInfo.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
 
52
                 | 
 
53
                <a href="#gio-Desktop-file-based-GAppInfo.prerequisites" class="shortcut">Prerequisites</a>
 
54
</td></tr>
50
55
</table>
51
56
<div class="refentry" lang="en">
52
57
<a name="gio-Desktop-file-based-GAppInfo"></a><div class="titlepage"></div>
53
58
<div class="refnamediv"><table width="100%"><tr>
54
59
<td valign="top">
55
 
<h2>
56
 
<a name="id2769372"></a><span class="refentrytitle">Desktop file based GAppInfo</span>
57
 
</h2>
58
 
<p>Desktop file based GAppInfo &#8212; Application information from desktop files</p>
 
60
<h2><span class="refentrytitle"><a name="gio-Desktop-file-based-GAppInfo.top_of_page"></a>Desktop file based GAppInfo</span></h2>
 
61
<p>Desktop file based GAppInfo — Application information from desktop files</p>
59
62
</td>
60
63
<td valign="top" align="right"></td>
61
64
</tr></table></div>
62
65
<div class="refsynopsisdiv">
63
 
<h2>Synopsis</h2>
64
 
<a name="GDesktopAppInfo"></a><pre class="synopsis">
 
66
<a name="gio-Desktop-file-based-GAppInfo.synopsis"></a><h2>Synopsis</h2>
 
67
<a name="GDesktopAppInfo"></a><a name="GDesktopAppInfoLookup"></a><pre class="synopsis">
65
68
 
66
69
#include &lt;gio/gdesktopappinfo.h&gt;
67
70
 
68
 
 
69
 
                    <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo-struct">GDesktopAppInfo</a>;
70
 
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a>*    <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new-from-filename">g_desktop_app_info_new_from_filename</a>
 
71
                    <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo-struct" title="GDesktopAppInfo">GDesktopAppInfo</a>;
 
72
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *   <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new-from-filename" title="g_desktop_app_info_new_from_filename ()">g_desktop_app_info_new_from_filename</a>
71
73
                                                        (const char *filename);
72
 
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a>*    <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new">g_desktop_app_info_new</a>              (const char *desktop_id);
 
74
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *   <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new-from-keyfile" title="g_desktop_app_info_new_from_keyfile ()">g_desktop_app_info_new_from_keyfile</a> (<a
 
75
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
 
76
>GKeyFile</a> *key_file);
 
77
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *   <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new" title="g_desktop_app_info_new ()">g_desktop_app_info_new</a>              (const char *desktop_id);
73
78
<a
74
79
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
75
 
>gboolean</a>            <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-get-is-hidden">g_desktop_app_info_get_is_hidden</a>    (<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *info);
76
 
void                <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-set-desktop-env">g_desktop_app_info_set_desktop_env</a>  (const char *desktop_env);
77
 
                    <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup">GDesktopAppInfoLookup</a>;
78
 
#define             <a class="link" href="gio-Desktop-file-based-GAppInfo.html#G-DESKTOP-APP-INFO-LOOKUP-EXTENSION-POINT-NAME:CAPS">G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME</a>
79
 
<a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>*           <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-lookup-get-default-for-uri-scheme">g_desktop_app_info_lookup_get_default_for_uri_scheme</a>
 
80
>gboolean</a>            <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-get-is-hidden" title="g_desktop_app_info_get_is_hidden ()">g_desktop_app_info_get_is_hidden</a>    (<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *info);
 
81
void                <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-set-desktop-env" title="g_desktop_app_info_set_desktop_env ()">g_desktop_app_info_set_desktop_env</a>  (const char *desktop_env);
 
82
                    <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup-struct" title="GDesktopAppInfoLookup">GDesktopAppInfoLookup</a>;
 
83
#define             <a class="link" href="gio-Desktop-file-based-GAppInfo.html#G-DESKTOP-APP-INFO-LOOKUP-EXTENSION-POINT-NAME--CAPS" title="G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME">G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME</a>
 
84
<a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a> *          <a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-lookup-get-default-for-uri-scheme" title="g_desktop_app_info_lookup_get_default_for_uri_scheme ()">g_desktop_app_info_lookup_get_default_for_uri_scheme</a>
80
85
                                                        (<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup">GDesktopAppInfoLookup</a> *lookup,
81
86
                                                         const char *uri_scheme);
82
 
 
83
 
 
84
87
</pre>
85
88
</div>
86
89
<div class="refsect1" lang="en">
87
 
<a name="id2878783"></a><h2>Object Hierarchy</h2>
 
90
<a name="gio-Desktop-file-based-GAppInfo.object-hierarchy"></a><h2>Object Hierarchy</h2>
88
91
<pre class="synopsis">
89
 
 
90
92
  <a
91
93
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
92
94
>GObject</a>
93
95
   +----GDesktopAppInfo
94
96
</pre>
95
 
</div>
96
 
<div class="refsect1" lang="en">
97
 
<a name="id2878807"></a><h2>Implemented Interfaces</h2>
 
97
<pre class="synopsis">
 
98
  GInterface
 
99
   +----GDesktopAppInfoLookup
 
100
</pre>
 
101
</div>
 
102
<div class="refsect1" lang="en">
 
103
<a name="gio-Desktop-file-based-GAppInfo.prerequisites"></a><h2>Prerequisites</h2>
 
104
<p>
 
105
GDesktopAppInfoLookup requires
 
106
 <a
 
107
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
 
108
>GObject</a>.</p>
 
109
</div>
 
110
<div class="refsect1" lang="en">
 
111
<a name="gio-Desktop-file-based-GAppInfo.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
98
112
<p>
99
113
GDesktopAppInfo implements
100
114
 <a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>.</p>
101
115
</div>
102
116
<div class="refsect1" lang="en">
103
 
<a name="id2878828"></a><h2>Description</h2>
 
117
<a name="gio-Desktop-file-based-GAppInfo.description"></a><h2>Description</h2>
104
118
<p>
105
119
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a> is an implementation of <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> based on
106
120
desktop files.</p>
107
121
<p>
108
 
 
109
122
</p>
110
123
</div>
111
124
<div class="refsect1" lang="en">
112
 
<a name="id2878862"></a><h2>Details</h2>
 
125
<a name="gio-Desktop-file-based-GAppInfo.details"></a><h2>Details</h2>
113
126
<div class="refsect2" lang="en">
114
 
<a name="id2878872"></a><h3>
115
 
<a name="GDesktopAppInfo-struct"></a>GDesktopAppInfo</h3>
116
 
<a class="indexterm" name="id2878884"></a><pre class="programlisting">typedef struct _GDesktopAppInfo GDesktopAppInfo;</pre>
 
127
<a name="GDesktopAppInfo-struct"></a><h3>GDesktopAppInfo</h3>
 
128
<pre class="programlisting">typedef struct _GDesktopAppInfo GDesktopAppInfo;</pre>
117
129
<p>
118
130
Information about an installed application from a desktop file.</p>
119
131
<p>
120
 
 
121
132
</p>
122
133
</div>
123
134
<hr>
124
135
<div class="refsect2" lang="en">
125
 
<a name="id2878905"></a><h3>
126
 
<a name="g-desktop-app-info-new-from-filename"></a>g_desktop_app_info_new_from_filename ()</h3>
127
 
<a class="indexterm" name="id2878916"></a><pre class="programlisting"><a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a>*    g_desktop_app_info_new_from_filename
 
136
<a name="g-desktop-app-info-new-from-filename"></a><h3>g_desktop_app_info_new_from_filename ()</h3>
 
137
<pre class="programlisting"><a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *   g_desktop_app_info_new_from_filename
128
138
                                                        (const char *filename);</pre>
129
139
<p>
130
140
Creates a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>.</p>
131
141
<p>
132
 
 
133
 
</p>
134
 
<div class="variablelist"><table border="0">
135
 
<col align="left" valign="top">
136
 
<tbody>
137
 
<tr>
138
 
<td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
139
 
<td> a string containing a file name.
140
 
</td>
141
 
</tr>
142
 
<tr>
143
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
144
 
<td> a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a> or <a
145
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
146
 
><code class="literal">NULL</code></a> on error.
147
 
</td>
148
 
</tr>
149
 
</tbody>
150
 
</table></div>
151
 
</div>
152
 
<hr>
153
 
<div class="refsect2" lang="en">
154
 
<a name="id2875353"></a><h3>
155
 
<a name="g-desktop-app-info-new"></a>g_desktop_app_info_new ()</h3>
156
 
<a class="indexterm" name="id2875363"></a><pre class="programlisting"><a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a>*    g_desktop_app_info_new              (const char *desktop_id);</pre>
157
 
<p>
158
 
Creates a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>.</p>
159
 
<p>
160
 
 
161
 
</p>
162
 
<div class="variablelist"><table border="0">
163
 
<col align="left" valign="top">
164
 
<tbody>
165
 
<tr>
166
 
<td><p><span class="term"><em class="parameter"><code>desktop_id</code></em>&#160;:</span></p></td>
 
142
</p>
 
143
<div class="variablelist"><table border="0">
 
144
<col align="left" valign="top">
 
145
<tbody>
 
146
<tr>
 
147
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
 
148
<td> the path of a desktop file, in the GLib filename encoding
 
149
</td>
 
150
</tr>
 
151
<tr>
 
152
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
153
<td> a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a> or <a
 
154
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
 
155
><code class="literal">NULL</code></a> on error.
 
156
</td>
 
157
</tr>
 
158
</tbody>
 
159
</table></div>
 
160
</div>
 
161
<hr>
 
162
<div class="refsect2" lang="en">
 
163
<a name="g-desktop-app-info-new-from-keyfile"></a><h3>g_desktop_app_info_new_from_keyfile ()</h3>
 
164
<pre class="programlisting"><a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *   g_desktop_app_info_new_from_keyfile (<a
 
165
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
 
166
>GKeyFile</a> *key_file);</pre>
 
167
<p>
 
168
Creates a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>.</p>
 
169
<p>
 
170
</p>
 
171
<div class="variablelist"><table border="0">
 
172
<col align="left" valign="top">
 
173
<tbody>
 
174
<tr>
 
175
<td><p><span class="term"><em class="parameter"><code>key_file</code></em> :</span></p></td>
 
176
<td> an opened <a
 
177
href="/usr/share/gtk-doc/html/glib/glib-Key-value-file-parser.html#GKeyFile"
 
178
><span class="type">GKeyFile</span></a>
 
179
</td>
 
180
</tr>
 
181
<tr>
 
182
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
 
183
<td> a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a> or <a
 
184
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
 
185
><code class="literal">NULL</code></a> on error.
 
186
 
 
187
</td>
 
188
</tr>
 
189
</tbody>
 
190
</table></div>
 
191
<p class="since">Since 2.18</p>
 
192
</div>
 
193
<hr>
 
194
<div class="refsect2" lang="en">
 
195
<a name="g-desktop-app-info-new"></a><h3>g_desktop_app_info_new ()</h3>
 
196
<pre class="programlisting"><a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *   g_desktop_app_info_new              (const char *desktop_id);</pre>
 
197
<p>
 
198
Creates a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>.</p>
 
199
<p>
 
200
</p>
 
201
<div class="variablelist"><table border="0">
 
202
<col align="left" valign="top">
 
203
<tbody>
 
204
<tr>
 
205
<td><p><span class="term"><em class="parameter"><code>desktop_id</code></em> :</span></p></td>
167
206
<td> the desktop file id
168
207
</td>
169
208
</tr>
170
209
<tr>
171
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
210
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
172
211
<td> a new <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>, or <a
173
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
212
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
174
213
><code class="literal">NULL</code></a> if no desktop file with that id
175
214
</td>
176
215
</tr>
179
218
</div>
180
219
<hr>
181
220
<div class="refsect2" lang="en">
182
 
<a name="id2875447"></a><h3>
183
 
<a name="g-desktop-app-info-get-is-hidden"></a>g_desktop_app_info_get_is_hidden ()</h3>
184
 
<a class="indexterm" name="id2875458"></a><pre class="programlisting"><a
 
221
<a name="g-desktop-app-info-get-is-hidden"></a><h3>g_desktop_app_info_get_is_hidden ()</h3>
 
222
<pre class="programlisting"><a
185
223
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
186
224
>gboolean</a>            g_desktop_app_info_get_is_hidden    (<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo">GDesktopAppInfo</a> *info);</pre>
187
225
<p>
188
226
A desktop file is hidden if the Hidden key in it is
189
227
set to True.</p>
190
228
<p>
191
 
 
192
229
</p>
193
230
<div class="variablelist"><table border="0">
194
231
<col align="left" valign="top">
195
232
<tbody>
196
233
<tr>
197
 
<td><p><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></p></td>
 
234
<td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
198
235
<td> a <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfo"><span class="type">GDesktopAppInfo</span></a>.
199
236
</td>
200
237
</tr>
201
238
<tr>
202
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
239
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
203
240
<td> <a
204
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
 
241
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE--CAPS"
205
242
><code class="literal">TRUE</code></a> if hidden, <a
206
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
 
243
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE--CAPS"
207
244
><code class="literal">FALSE</code></a> otherwise. 
208
245
</td>
209
246
</tr>
212
249
</div>
213
250
<hr>
214
251
<div class="refsect2" lang="en">
215
 
<a name="id2875546"></a><h3>
216
 
<a name="g-desktop-app-info-set-desktop-env"></a>g_desktop_app_info_set_desktop_env ()</h3>
217
 
<a class="indexterm" name="id2875557"></a><pre class="programlisting">void                g_desktop_app_info_set_desktop_env  (const char *desktop_env);</pre>
 
252
<a name="g-desktop-app-info-set-desktop-env"></a><h3>g_desktop_app_info_set_desktop_env ()</h3>
 
253
<pre class="programlisting">void                g_desktop_app_info_set_desktop_env  (const char *desktop_env);</pre>
218
254
<p>
219
255
Sets the name of the desktop that the application is running in.
220
 
This is used by <a class="link" href="GAppInfo.html#g-app-info-should-show"><code class="function">g_app_info_should_show()</code></a> to evaluate the
 
256
This is used by <a class="link" href="GAppInfo.html#g-app-info-should-show" title="g_app_info_should_show ()"><code class="function">g_app_info_should_show()</code></a> to evaluate the
221
257
<code class="literal">OnlyShowIn</code> and <code class="literal">NotShowIn</code>
222
258
desktop entry fields.
223
259
</p>
237
273
<p>
238
274
Should be called only once; subsequent calls are ignored.</p>
239
275
<p>
240
 
 
241
276
</p>
242
277
<div class="variablelist"><table border="0">
243
278
<col align="left" valign="top">
244
279
<tbody><tr>
245
 
<td><p><span class="term"><em class="parameter"><code>desktop_env</code></em>&#160;:</span></p></td>
 
280
<td><p><span class="term"><em class="parameter"><code>desktop_env</code></em> :</span></p></td>
246
281
<td> a string specifying what desktop this is
247
282
</td>
248
283
</tr></tbody>
250
285
</div>
251
286
<hr>
252
287
<div class="refsect2" lang="en">
253
 
<a name="id2875667"></a><h3>
254
 
<a name="GDesktopAppInfoLookup"></a>GDesktopAppInfoLookup</h3>
255
 
<a class="indexterm" name="id2875678"></a><pre class="programlisting">typedef struct _GDesktopAppInfoLookup GDesktopAppInfoLookup;</pre>
 
288
<a name="GDesktopAppInfoLookup-struct"></a><h3>GDesktopAppInfoLookup</h3>
 
289
<pre class="programlisting">typedef struct _GDesktopAppInfoLookup GDesktopAppInfoLookup;</pre>
256
290
<p>
257
 
Interface that is used by backends to associate default 
 
291
Interface that is used by backends to associate default
258
292
handlers with URI schemes.</p>
259
293
<p>
260
 
 
261
294
</p>
262
295
</div>
263
296
<hr>
264
297
<div class="refsect2" lang="en">
265
 
<a name="id2875700"></a><h3>
266
 
<a name="G-DESKTOP-APP-INFO-LOOKUP-EXTENSION-POINT-NAME:CAPS"></a>G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME</h3>
267
 
<a class="indexterm" name="id2875714"></a><pre class="programlisting">#define G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME "gio-desktop-app-info-lookup"
 
298
<a name="G-DESKTOP-APP-INFO-LOOKUP-EXTENSION-POINT-NAME--CAPS"></a><h3>G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME</h3>
 
299
<pre class="programlisting">#define G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME "gio-desktop-app-info-lookup"
268
300
</pre>
269
301
<p>
270
302
Extension point for default handler to URI association. See
271
303
Extending GIO.</p>
272
304
<p>
273
 
 
274
305
</p>
275
306
</div>
276
307
<hr>
277
308
<div class="refsect2" lang="en">
278
 
<a name="id2875742"></a><h3>
279
 
<a name="g-desktop-app-info-lookup-get-default-for-uri-scheme"></a>g_desktop_app_info_lookup_get_default_for_uri_scheme ()</h3>
280
 
<a class="indexterm" name="id2875756"></a><pre class="programlisting"><a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a>*           g_desktop_app_info_lookup_get_default_for_uri_scheme
 
309
<a name="g-desktop-app-info-lookup-get-default-for-uri-scheme"></a><h3>g_desktop_app_info_lookup_get_default_for_uri_scheme ()</h3>
 
310
<pre class="programlisting"><a class="link" href="GAppInfo.html" title="GAppInfo">GAppInfo</a> *          g_desktop_app_info_lookup_get_default_for_uri_scheme
281
311
                                                        (<a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup">GDesktopAppInfoLookup</a> *lookup,
282
312
                                                         const char *uri_scheme);</pre>
283
313
<p>
287
317
</p>
288
318
<p>
289
319
The GDesktopAppInfoLookup interface and this function is used
290
 
to implement <a class="link" href="GAppInfo.html#g-app-info-get-default-for-uri-scheme"><code class="function">g_app_info_get_default_for_uri_scheme()</code></a> backends
 
320
to implement <a class="link" href="GAppInfo.html#g-app-info-get-default-for-uri-scheme" title="g_app_info_get_default_for_uri_scheme ()"><code class="function">g_app_info_get_default_for_uri_scheme()</code></a> backends
291
321
in a GIO module. There is no reason for applications to use it
292
 
directly. Applications should use <a class="link" href="GAppInfo.html#g-app-info-get-default-for-uri-scheme"><code class="function">g_app_info_get_default_for_uri_scheme()</code></a>.</p>
 
322
directly. Applications should use <a class="link" href="GAppInfo.html#g-app-info-get-default-for-uri-scheme" title="g_app_info_get_default_for_uri_scheme ()"><code class="function">g_app_info_get_default_for_uri_scheme()</code></a>.</p>
293
323
<p>
294
 
 
295
324
</p>
296
325
<div class="variablelist"><table border="0">
297
326
<col align="left" valign="top">
298
327
<tbody>
299
328
<tr>
300
 
<td><p><span class="term"><em class="parameter"><code>lookup</code></em>&#160;:</span></p></td>
 
329
<td><p><span class="term"><em class="parameter"><code>lookup</code></em> :</span></p></td>
301
330
<td> a <a class="link" href="gio-Desktop-file-based-GAppInfo.html#GDesktopAppInfoLookup"><span class="type">GDesktopAppInfoLookup</span></a>
302
331
</td>
303
332
</tr>
304
333
<tr>
305
 
<td><p><span class="term"><em class="parameter"><code>uri_scheme</code></em>&#160;:</span></p></td>
 
334
<td><p><span class="term"><em class="parameter"><code>uri_scheme</code></em> :</span></p></td>
306
335
<td> a string containing a URI scheme.
307
336
</td>
308
337
</tr>
309
338
<tr>
310
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
 
339
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
311
340
<td> <a class="link" href="GAppInfo.html" title="GAppInfo"><span class="type">GAppInfo</span></a> for given <em class="parameter"><code>uri_scheme</code></em> or <a
312
 
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
 
341
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL--CAPS"
313
342
><code class="literal">NULL</code></a> on error.
314
343
</td>
315
344
</tr>
317
346
</table></div>
318
347
</div>
319
348
</div>
320
 
<div class="refsect1" lang="en">
321
 
<a name="id2867997"></a><div class="refsect2" lang="en"><a name="id2867998"></a></div>
 
349
</div>
 
350
<div class="footer">
322
351
<hr>
323
 
<div class="refsect2" lang="en"><a name="id2867999"></a></div>
324
 
</div>
325
 
</div>
 
352
          Generated by GTK-Doc V1.11</div>
326
353
</body>
327
354
</html>