~ubuntu-branches/ubuntu/vivid/indicator-appmenu/vivid-proposed

« back to all changes in this revision

Viewing changes to docs/devel/html/HudItem.html

  • Committer: Package Import Robot
  • Author(s): Automatic PS uploader, Mathieu Trudel-Lapierre, Didier Roche, Automatic PS uploader
  • Date: 2012-11-23 07:39:58 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20121123073958-rr5gz4chpdjfmafa
Tags: 12.10.4daily12.11.23-0ubuntu1
[ Mathieu Trudel-Lapierre ]
* debian/control:
  - Reorganize Build-Depends for clarity.
  - Adjust style to be consistent with other indicator packages.
  - Drop Build-Depends on cdbs.
  - Bump debhelper Build-Depends to (>= 9). 
  - Add gnome-common to Build-Depends.
  - Update Vcs-Bzr, Vcs-Browser and add notice to uploaders.
  - Add gtk-doc-tools to Build-Depends.
* debian/compat: bump compat level to 9.
* debian/rules:
  - Convert to using the dh sequencer.
  - Make sure the build fails if there are files not listed in install files
    when building the packages.
  - Override dh_autoreconf to call autogen.sh and not run configure.
  - Temporarily disable tests due to missing dependencies.
* debian/indicator-appmenu.install,
  debian/indicator-appmenu-tools.install: update paths to install private
  binaries to the /usr/lib/<triplet> paths.

[ Didier Roche ]
* Automatic snapshot from revision 219 (bootstrap):
  - Adds childless menu support to the Unity menu panel. (LP: #773101)
  - add pot template
* Unity global menu bar hides childless menu items (LP: #773101)

[ Automatic PS uploader ]
* Automatic snapshot from revision 221

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>HudItem</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
 
<link rel="home" href="index.html" title="hud-service Hacking Guide">
8
 
<link rel="up" href="ch03.html" title="Queries, Results, Items">
9
 
<link rel="prev" href="ch03.html" title="Queries, Results, Items">
10
 
<link rel="next" href="HudResult.html" title="HudResult">
11
 
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
 
<link rel="stylesheet" href="style.css" type="text/css">
13
 
</head>
14
 
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
 
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
 
<tr valign="middle">
17
 
<td><a accesskey="p" href="ch03.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
 
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
 
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
 
<th width="100%" align="center">hud-service Hacking Guide</th>
21
 
<td><a accesskey="n" href="HudResult.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
 
</tr>
23
 
<tr><td colspan="5" class="shortcuts">
24
 
<a href="#HudItem.synopsis" class="shortcut">Top</a>
25
 
                   | 
26
 
                  <a href="#HudItem.description" class="shortcut">Description</a>
27
 
                   | 
28
 
                  <a href="#HudItem.object-hierarchy" class="shortcut">Object Hierarchy</a>
29
 
</td></tr>
30
 
</table>
31
 
<div class="refentry">
32
 
<a name="HudItem"></a><div class="titlepage"></div>
33
 
<div class="refnamediv"><table width="100%"><tr>
34
 
<td valign="top">
35
 
<h2><span class="refentrytitle"><a name="HudItem.top_of_page"></a>HudItem</span></h2>
36
 
<p>HudItem — a user-interesting item that can be activated</p>
37
 
</td>
38
 
<td valign="top" align="right"></td>
39
 
</tr></table></div>
40
 
<div class="refsynopsisdiv">
41
 
<a name="HudItem.synopsis"></a><h2>Synopsis</h2>
42
 
<pre class="synopsis">                    <a class="link" href="HudItem.html#HudItem-struct" title="HudItem">HudItem</a>;
43
 
struct              <a class="link" href="HudItem.html#HudItemClass" title="struct HudItemClass">HudItemClass</a>;
44
 
<span class="returnvalue">void</span>                <a class="link" href="HudItem.html#hud-item-activate" title="hud_item_activate ()">hud_item_activate</a>                   (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>,
45
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *platform_data</code></em>);
46
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            <a class="link" href="HudItem.html#hud-item-construct" title="hud_item_construct ()">hud_item_construct</a>                  (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> g_type</code></em>,
47
 
                                                         <em class="parameter"><code><a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="type">HudStringList</span></a> *tokens</code></em>,
48
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *desktop_file</code></em>,
49
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *app_icon</code></em>,
50
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enabled</code></em>);
51
 
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="HudItem.html#hud-item-get-app-icon" title="hud_item_get_app_icon ()">hud_item_get_app_icon</a>               (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);
52
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="HudItem.html#hud-item-get-enabled" title="hud_item_get_enabled ()">hud_item_get_enabled</a>                (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);
53
 
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="HudItem.html#hud-item-get-item-icon" title="hud_item_get_item_icon ()">hud_item_get_item_icon</a>              (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);
54
 
<a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="returnvalue">HudStringList</span></a> *     <a class="link" href="HudItem.html#hud-item-get-tokens" title="hud_item_get_tokens ()">hud_item_get_tokens</a>                 (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);
55
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="HudItem.html#hud-item-get-usage" title="hud_item_get_usage ()">hud_item_get_usage</a>                  (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);
56
 
<a class="link" href="HudItem.html" title="HudItem"><span class="returnvalue">HudItem</span></a> *           <a class="link" href="HudItem.html#hud-item-new" title="hud_item_new ()">hud_item_new</a>                        (<em class="parameter"><code><a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="type">HudStringList</span></a> *tokens</code></em>,
57
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *desktop_file</code></em>,
58
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *app_icon</code></em>,
59
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enabled</code></em>);
60
 
</pre>
61
 
</div>
62
 
<div class="refsect1">
63
 
<a name="HudItem.object-hierarchy"></a><h2>Object Hierarchy</h2>
64
 
<pre class="synopsis">
65
 
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
66
 
   +----HudItem
67
 
</pre>
68
 
</div>
69
 
<div class="refsect1">
70
 
<a name="HudItem.description"></a><h2>Description</h2>
71
 
<p>
72
 
A <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> represents a user-interesting action that can be activated
73
 
from the Hud user interface.
74
 
</p>
75
 
</div>
76
 
<div class="refsect1">
77
 
<a name="HudItem.details"></a><h2>Details</h2>
78
 
<div class="refsect2">
79
 
<a name="HudItem-struct"></a><h3>HudItem</h3>
80
 
<pre class="programlisting">typedef struct _HudItem HudItem;</pre>
81
 
<p>
82
 
This is an opaque structure type.
83
 
</p>
84
 
</div>
85
 
<hr>
86
 
<div class="refsect2">
87
 
<a name="HudItemClass"></a><h3>struct HudItemClass</h3>
88
 
<pre class="programlisting">struct HudItemClass {
89
 
  GObjectClass parent_class;
90
 
 
91
 
  void (* activate) (HudItem  *item,
92
 
                     GVariant *platform_data);
93
 
};
94
 
</pre>
95
 
<p>
96
 
This is the class vtable for <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>.
97
 
</p>
98
 
<div class="variablelist"><table border="0">
99
 
<col align="left" valign="top">
100
 
<tbody>
101
 
<tr>
102
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="HudItemClass.parent-class"></a>parent_class</code></em>;</span></p></td>
103
 
<td>the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a>
104
 
</td>
105
 
</tr>
106
 
<tr>
107
 
<td><p><span class="term"><em class="structfield"><code><a name="HudItemClass.activate"></a>activate</code></em> ()</span></p></td>
108
 
<td>virtual function pointer for <a class="link" href="HudItem.html#hud-item-activate" title="hud_item_activate ()"><code class="function">hud_item_activate()</code></a>
109
 
</td>
110
 
</tr>
111
 
</tbody>
112
 
</table></div>
113
 
</div>
114
 
<hr>
115
 
<div class="refsect2">
116
 
<a name="hud-item-activate"></a><h3>hud_item_activate ()</h3>
117
 
<pre class="programlisting"><span class="returnvalue">void</span>                hud_item_activate                   (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>,
118
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *platform_data</code></em>);</pre>
119
 
<p>
120
 
Activates <em class="parameter"><code>item</code></em>.
121
 
</p>
122
 
<p>
123
 
<em class="parameter"><code>platform_data</code></em> is platform data in the <a href="http://library.gnome.org/devel/gio/unstable/GApplication.html"><span class="type">GApplication</span></a> or
124
 
<a href="http://library.gnome.org/devel/gio/unstable/GRemoteActionGroup.html"><span class="type">GRemoteActionGroup</span></a> sense.  It should be a <a href="http://library.gnome.org/devel/glib/unstable/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> with the type
125
 
<code class="literal">a{sv}</code>.
126
 
</p>
127
 
<div class="variablelist"><table border="0">
128
 
<col align="left" valign="top">
129
 
<tbody>
130
 
<tr>
131
 
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
132
 
<td>a <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
133
 
</td>
134
 
</tr>
135
 
<tr>
136
 
<td><p><span class="term"><em class="parameter"><code>platform_data</code></em> :</span></p></td>
137
 
<td>platform data</td>
138
 
</tr>
139
 
</tbody>
140
 
</table></div>
141
 
</div>
142
 
<hr>
143
 
<div class="refsect2">
144
 
<a name="hud-item-construct"></a><h3>hud_item_construct ()</h3>
145
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>            hud_item_construct                  (<em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> g_type</code></em>,
146
 
                                                         <em class="parameter"><code><a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="type">HudStringList</span></a> *tokens</code></em>,
147
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *desktop_file</code></em>,
148
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *app_icon</code></em>,
149
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enabled</code></em>);</pre>
150
 
<p>
151
 
This is the Vala-style chain-up constructor corresponding to
152
 
<a class="link" href="HudItem.html#hud-item-new" title="hud_item_new ()"><code class="function">hud_item_new()</code></a>.  <em class="parameter"><code>g_type</code></em> must be a subtype of <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>.
153
 
</p>
154
 
<p>
155
 
Only subclasses of <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> should call this.
156
 
</p>
157
 
<div class="variablelist"><table border="0">
158
 
<col align="left" valign="top">
159
 
<tbody>
160
 
<tr>
161
 
<td><p><span class="term"><em class="parameter"><code>g_type</code></em> :</span></p></td>
162
 
<td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a>
163
 
</td>
164
 
</tr>
165
 
<tr>
166
 
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
167
 
<td>the search tokens for the item</td>
168
 
</tr>
169
 
<tr>
170
 
<td><p><span class="term"><em class="parameter"><code>desktop_file</code></em> :</span></p></td>
171
 
<td>the desktop file of the provider of the item</td>
172
 
</tr>
173
 
<tr>
174
 
<td><p><span class="term"><em class="parameter"><code>app_icon</code></em> :</span></p></td>
175
 
<td>the icon name for the application that created this item</td>
176
 
</tr>
177
 
<tr>
178
 
<td><p><span class="term"><em class="parameter"><code>enabled</code></em> :</span></p></td>
179
 
<td>if the item is enabled</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="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> or <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> subclass</td>
184
 
</tr>
185
 
</tbody>
186
 
</table></div>
187
 
</div>
188
 
<hr>
189
 
<div class="refsect2">
190
 
<a name="hud-item-get-app-icon"></a><h3>hud_item_get_app_icon ()</h3>
191
 
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       hud_item_get_app_icon               (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);</pre>
192
 
<p>
193
 
Gets the icon of the application that <em class="parameter"><code>item</code></em> lies within.
194
 
</p>
195
 
<div class="variablelist"><table border="0">
196
 
<col align="left" valign="top">
197
 
<tbody>
198
 
<tr>
199
 
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
200
 
<td>a <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
201
 
</td>
202
 
</tr>
203
 
<tr>
204
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
205
 
<td>the icon name, or "" if there is no icon</td>
206
 
</tr>
207
 
</tbody>
208
 
</table></div>
209
 
</div>
210
 
<hr>
211
 
<div class="refsect2">
212
 
<a name="hud-item-get-enabled"></a><h3>hud_item_get_enabled ()</h3>
213
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            hud_item_get_enabled                (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);</pre>
214
 
<p>
215
 
Checks if the item is disabled or enabled.
216
 
</p>
217
 
<p>
218
 
Disabled items should never appear in search results.
219
 
</p>
220
 
<div class="variablelist"><table border="0">
221
 
<col align="left" valign="top">
222
 
<tbody>
223
 
<tr>
224
 
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
225
 
<td>a <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
226
 
</td>
227
 
</tr>
228
 
<tr>
229
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
230
 
<td>if the item is enabled</td>
231
 
</tr>
232
 
</tbody>
233
 
</table></div>
234
 
</div>
235
 
<hr>
236
 
<div class="refsect2">
237
 
<a name="hud-item-get-item-icon"></a><h3>hud_item_get_item_icon ()</h3>
238
 
<pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       hud_item_get_item_icon              (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);</pre>
239
 
<p>
240
 
Gets the icon for the action represented by <em class="parameter"><code>item</code></em>, if one exists.
241
 
</p>
242
 
<div class="variablelist"><table border="0">
243
 
<col align="left" valign="top">
244
 
<tbody>
245
 
<tr>
246
 
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
247
 
<td>a <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
248
 
</td>
249
 
</tr>
250
 
<tr>
251
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
252
 
<td>the icon name, or "" if there is no icon</td>
253
 
</tr>
254
 
</tbody>
255
 
</table></div>
256
 
</div>
257
 
<hr>
258
 
<div class="refsect2">
259
 
<a name="hud-item-get-tokens"></a><h3>hud_item_get_tokens ()</h3>
260
 
<pre class="programlisting"><a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="returnvalue">HudStringList</span></a> *     hud_item_get_tokens                 (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);</pre>
261
 
<p>
262
 
Gets the tokens that represent the description of <em class="parameter"><code>item</code></em>.
263
 
</p>
264
 
<p>
265
 
This is a <a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="type">HudStringList</span></a> in reverse order of how the item should
266
 
appear in the Hud.  For example, "File &gt; Open" would be represneted
267
 
by the list <code class="code">['Open', 'File']</code>.
268
 
</p>
269
 
<div class="variablelist"><table border="0">
270
 
<col align="left" valign="top">
271
 
<tbody>
272
 
<tr>
273
 
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
274
 
<td>a <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
275
 
</td>
276
 
</tr>
277
 
<tr>
278
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
279
 
<td>the tokens. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
280
 
</td>
281
 
</tr>
282
 
</tbody>
283
 
</table></div>
284
 
</div>
285
 
<hr>
286
 
<div class="refsect2">
287
 
<a name="hud-item-get-usage"></a><h3>hud_item_get_usage ()</h3>
288
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               hud_item_get_usage                  (<em class="parameter"><code><a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a> *item</code></em>);</pre>
289
 
<p>
290
 
Gets the use-count of <em class="parameter"><code>item</code></em>.
291
 
</p>
292
 
<p>
293
 
This is the number of times the item has been activated in recent
294
 
history.
295
 
</p>
296
 
<div class="variablelist"><table border="0">
297
 
<col align="left" valign="top">
298
 
<tbody>
299
 
<tr>
300
 
<td><p><span class="term"><em class="parameter"><code>item</code></em> :</span></p></td>
301
 
<td>a <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
302
 
</td>
303
 
</tr>
304
 
<tr>
305
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
306
 
<td>the usage count</td>
307
 
</tr>
308
 
</tbody>
309
 
</table></div>
310
 
</div>
311
 
<hr>
312
 
<div class="refsect2">
313
 
<a name="hud-item-new"></a><h3>hud_item_new ()</h3>
314
 
<pre class="programlisting"><a class="link" href="HudItem.html" title="HudItem"><span class="returnvalue">HudItem</span></a> *           hud_item_new                        (<em class="parameter"><code><a class="link" href="hud-HudStringList.html#HudStringList" title="HudStringList"><span class="type">HudStringList</span></a> *tokens</code></em>,
315
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *desktop_file</code></em>,
316
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *app_icon</code></em>,
317
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> enabled</code></em>);</pre>
318
 
<p>
319
 
Creates a new <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>.
320
 
</p>
321
 
<p>
322
 
If <em class="parameter"><code>enabled</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> then the item will never be in the result of a
323
 
search.
324
 
</p>
325
 
<div class="variablelist"><table border="0">
326
 
<col align="left" valign="top">
327
 
<tbody>
328
 
<tr>
329
 
<td><p><span class="term"><em class="parameter"><code>tokens</code></em> :</span></p></td>
330
 
<td>the search tokens for the item</td>
331
 
</tr>
332
 
<tr>
333
 
<td><p><span class="term"><em class="parameter"><code>desktop_file</code></em> :</span></p></td>
334
 
<td>the desktop file of the provider of the item</td>
335
 
</tr>
336
 
<tr>
337
 
<td><p><span class="term"><em class="parameter"><code>app_icon</code></em> :</span></p></td>
338
 
<td>the icon name for the application that created this item</td>
339
 
</tr>
340
 
<tr>
341
 
<td><p><span class="term"><em class="parameter"><code>enabled</code></em> :</span></p></td>
342
 
<td>if the item is enabled</td>
343
 
</tr>
344
 
<tr>
345
 
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
346
 
<td>a new <a class="link" href="HudItem.html" title="HudItem"><span class="type">HudItem</span></a>
347
 
</td>
348
 
</tr>
349
 
</tbody>
350
 
</table></div>
351
 
</div>
352
 
</div>
353
 
</div>
354
 
<div class="footer">
355
 
<hr>
356
 
          Generated by GTK-Doc V1.18</div>
357
 
</body>
358
 
</html>
 
 
b'\\ No newline at end of file'