2 <!-- This file was automatically generated from C sources - DO NOT EDIT!
3 To affect the contents of this file, edit the original C definitions,
4 and/or use gtk-doc annotations. -->
5 <repository version="1.1"
6 xmlns="http://www.gtk.org/introspection/core/1.0"
7 xmlns:c="http://www.gtk.org/introspection/c/1.0"
8 xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
9 <include name="Atk" version="1.0"/>
10 <include name="GLib" version="2.0"/>
11 <include name="GModule" version="2.0"/>
12 <include name="GObject" version="2.0"/>
13 <include name="Gdk" version="2.0"/>
14 <include name="GdkPixbuf" version="2.0"/>
15 <include name="Gio" version="2.0"/>
16 <include name="Gtk" version="2.0"/>
17 <include name="Pango" version="1.0"/>
18 <include name="cairo" version="1.0"/>
19 <include name="xlib" version="2.0"/>
20 <package name="gtk+-2.0"/>
21 <package name="libnotify"/>
22 <c:include name="libnotify/notification.h"/>
23 <c:include name="libnotify/notify.h"/>
24 <namespace name="Notify"
26 shared-library="libnotify.so.1"
28 <callback name="ActionCallback" c:type="NotifyActionCallback">
29 <return-value transfer-ownership="none">
30 <type name="none" c:type="void"/>
33 <parameter name="notification" transfer-ownership="none">
34 <type name="Notification" c:type="NotifyNotification*"/>
36 <parameter name="action" transfer-ownership="full">
37 <type name="utf8" c:type="char*"/>
39 <parameter name="user_data" transfer-ownership="none" closure="2">
40 <type name="any" c:type="gpointer"/>
44 <constant name="EXPIRES_DEFAULT" value="-1">
47 <constant name="EXPIRES_NEVER" value="0">
50 <class name="Notification"
51 c:type="NotifyNotification"
52 parent="GObject.Object"
53 glib:type-name="NotifyNotification"
54 glib:get-type="notify_notification_get_type"
55 glib:type-struct="NotificationClass">
56 <constructor name="new" c:identifier="notify_notification_new">
57 <return-value transfer-ownership="full">
58 <type name="Notification" c:type="NotifyNotification*"/>
61 <parameter name="summary" transfer-ownership="none">
62 <type name="utf8" c:type="char*"/>
64 <parameter name="body" transfer-ownership="none">
65 <type name="utf8" c:type="char*"/>
67 <parameter name="icon" transfer-ownership="none">
68 <type name="utf8" c:type="char*"/>
70 <parameter name="attach" transfer-ownership="none" allow-none="1">
71 <type name="Gtk.Widget" c:type="GtkWidget*"/>
75 <constructor name="new_with_status_icon"
76 c:identifier="notify_notification_new_with_status_icon">
77 <return-value transfer-ownership="full">
78 <type name="Notification" c:type="NotifyNotification*"/>
81 <parameter name="summary" transfer-ownership="none">
82 <type name="utf8" c:type="char*"/>
84 <parameter name="body" transfer-ownership="none">
85 <type name="utf8" c:type="char*"/>
87 <parameter name="icon" transfer-ownership="none">
88 <type name="utf8" c:type="char*"/>
90 <parameter name="status_icon" transfer-ownership="none">
91 <type name="Gtk.StatusIcon" c:type="GtkStatusIcon*"/>
95 <method name="update" c:identifier="notify_notification_update">
96 <return-value transfer-ownership="none">
97 <type name="boolean" c:type="gboolean"/>
100 <parameter name="summary" transfer-ownership="none">
101 <type name="utf8" c:type="char*"/>
103 <parameter name="body" transfer-ownership="none">
104 <type name="utf8" c:type="char*"/>
106 <parameter name="icon" transfer-ownership="none">
107 <type name="utf8" c:type="char*"/>
111 <method name="attach_to_widget"
112 c:identifier="notify_notification_attach_to_widget">
113 <return-value transfer-ownership="none">
114 <type name="none" c:type="void"/>
117 <parameter name="attach" transfer-ownership="none">
118 <type name="Gtk.Widget" c:type="GtkWidget*"/>
122 <method name="attach_to_status_icon"
123 c:identifier="notify_notification_attach_to_status_icon">
124 <return-value transfer-ownership="none">
125 <type name="none" c:type="void"/>
128 <parameter name="status_icon" transfer-ownership="none">
129 <type name="Gtk.StatusIcon" c:type="GtkStatusIcon*"/>
133 <method name="set_geometry_hints"
134 c:identifier="notify_notification_set_geometry_hints">
135 <return-value transfer-ownership="none">
136 <type name="none" c:type="void"/>
139 <parameter name="screen" transfer-ownership="none">
140 <type name="Gdk.Screen" c:type="GdkScreen*"/>
142 <parameter name="x" transfer-ownership="none">
143 <type name="int" c:type="gint"/>
145 <parameter name="y" transfer-ownership="none">
146 <type name="int" c:type="gint"/>
150 <method name="show" c:identifier="notify_notification_show" throws="1">
151 <return-value transfer-ownership="none">
152 <type name="boolean" c:type="gboolean"/>
155 <method name="set_timeout"
156 c:identifier="notify_notification_set_timeout">
157 <return-value transfer-ownership="none">
158 <type name="none" c:type="void"/>
161 <parameter name="timeout" transfer-ownership="none">
162 <type name="int" c:type="gint"/>
166 <method name="set_category"
167 c:identifier="notify_notification_set_category">
168 <return-value transfer-ownership="none">
169 <type name="none" c:type="void"/>
172 <parameter name="category" transfer-ownership="none">
173 <type name="utf8" c:type="char*"/>
177 <method name="set_urgency"
178 c:identifier="notify_notification_set_urgency">
179 <return-value transfer-ownership="none">
180 <type name="none" c:type="void"/>
183 <parameter name="urgency" transfer-ownership="none">
184 <type name="Urgency" c:type="NotifyUrgency"/>
188 <method name="set_icon_from_pixbuf"
189 c:identifier="notify_notification_set_icon_from_pixbuf">
190 <return-value transfer-ownership="none">
191 <type name="none" c:type="void"/>
194 <parameter name="icon" transfer-ownership="none">
195 <type name="GdkPixbuf.Pixbuf" c:type="GdkPixbuf*"/>
199 <method name="set_image_from_pixbuf"
200 c:identifier="notify_notification_set_image_from_pixbuf">
201 <return-value transfer-ownership="none">
202 <type name="none" c:type="void"/>
205 <parameter name="image" transfer-ownership="none">
206 <type name="GdkPixbuf.Pixbuf" c:type="GdkPixbuf*"/>
210 <method name="set_hint_int32"
211 c:identifier="notify_notification_set_hint_int32">
212 <return-value transfer-ownership="none">
213 <type name="none" c:type="void"/>
216 <parameter name="key" transfer-ownership="none">
217 <type name="utf8" c:type="char*"/>
219 <parameter name="value" transfer-ownership="none">
220 <type name="int" c:type="gint"/>
224 <method name="set_hint_uint32"
225 c:identifier="notify_notification_set_hint_uint32">
226 <return-value transfer-ownership="none">
227 <type name="none" c:type="void"/>
230 <parameter name="key" transfer-ownership="none">
231 <type name="utf8" c:type="char*"/>
233 <parameter name="value" transfer-ownership="none">
234 <type name="uint" c:type="guint"/>
238 <method name="set_hint_double"
239 c:identifier="notify_notification_set_hint_double">
240 <return-value transfer-ownership="none">
241 <type name="none" c:type="void"/>
244 <parameter name="key" transfer-ownership="none">
245 <type name="utf8" c:type="char*"/>
247 <parameter name="value" transfer-ownership="none">
248 <type name="double" c:type="gdouble"/>
252 <method name="set_hint_string"
253 c:identifier="notify_notification_set_hint_string">
254 <return-value transfer-ownership="none">
255 <type name="none" c:type="void"/>
258 <parameter name="key" transfer-ownership="none">
259 <type name="utf8" c:type="char*"/>
261 <parameter name="value" transfer-ownership="none">
262 <type name="utf8" c:type="char*"/>
266 <method name="set_hint_byte"
267 c:identifier="notify_notification_set_hint_byte">
268 <return-value transfer-ownership="none">
269 <type name="none" c:type="void"/>
272 <parameter name="key" transfer-ownership="none">
273 <type name="utf8" c:type="char*"/>
275 <parameter name="value" transfer-ownership="none">
276 <type name="uint8" c:type="guchar"/>
280 <method name="set_hint_byte_array"
281 c:identifier="notify_notification_set_hint_byte_array">
282 <return-value transfer-ownership="none">
283 <type name="none" c:type="void"/>
286 <parameter name="key" transfer-ownership="none">
287 <type name="utf8" c:type="char*"/>
289 <parameter name="value" transfer-ownership="none">
290 <array c:type="guchar*">
294 <parameter name="len" transfer-ownership="none">
295 <type name="gsize" c:type="gsize"/>
299 <method name="clear_hints"
300 c:identifier="notify_notification_clear_hints">
301 <return-value transfer-ownership="none">
302 <type name="none" c:type="void"/>
305 <method name="add_action" c:identifier="notify_notification_add_action">
306 <return-value transfer-ownership="none">
307 <type name="none" c:type="void"/>
310 <parameter name="action" transfer-ownership="none">
311 <type name="utf8" c:type="char*"/>
313 <parameter name="label" transfer-ownership="none">
314 <type name="utf8" c:type="char*"/>
316 <parameter name="callback"
317 transfer-ownership="none"
320 <type name="ActionCallback" c:type="NotifyActionCallback"/>
322 <parameter name="user_data" transfer-ownership="none">
323 <type name="any" c:type="gpointer"/>
325 <parameter name="free_func" transfer-ownership="none" scope="call">
326 <type name="GLib.FreeFunc" c:type="GFreeFunc"/>
330 <method name="clear_actions"
331 c:identifier="notify_notification_clear_actions">
332 <return-value transfer-ownership="none">
333 <type name="none" c:type="void"/>
336 <method name="close" c:identifier="notify_notification_close" throws="1">
337 <return-value transfer-ownership="none">
338 <type name="boolean" c:type="gboolean"/>
341 <method name="get_closed_reason"
342 c:identifier="notify_notification_get_closed_reason">
343 <return-value transfer-ownership="none">
344 <type name="int" c:type="gint"/>
347 <property name="attach-widget"
350 transfer-ownership="none">
351 <type name="Gtk.Widget" c:type="GtkWidget"/>
353 <property name="body"
356 transfer-ownership="none">
357 <type name="utf8" c:type="gchararray"/>
359 <property name="closed-reason" transfer-ownership="none">
360 <type name="int" c:type="gint"/>
362 <property name="icon-name"
365 transfer-ownership="none">
366 <type name="utf8" c:type="gchararray"/>
368 <property name="id" writable="1" construct="1" transfer-ownership="none">
369 <type name="int" c:type="gint"/>
371 <property name="status-icon"
374 transfer-ownership="none">
375 <type name="Gtk.StatusIcon" c:type="GtkStatusIcon"/>
377 <property name="summary"
380 transfer-ownership="none">
381 <type name="utf8" c:type="gchararray"/>
383 <field name="parent_object">
384 <type name="GObject.Object" c:type="GObject"/>
387 <type name="NotificationPrivate" c:type="NotifyNotificationPrivate*"/>
389 <glib:signal name="closed">
390 <return-value transfer-ownership="full">
391 <type name="none" c:type="void"/>
395 <record name="NotificationClass"
396 c:type="NotifyNotificationClass"
397 glib:is-gtype-struct-for="Notification">
398 <field name="parent_class">
399 <type name="GObject.ObjectClass" c:type="GObjectClass"/>
401 <field name="closed">
402 <callback name="closed" c:type="closed">
403 <return-value transfer-ownership="none">
404 <type name="none" c:type="void"/>
407 <parameter name="notification" transfer-ownership="none">
408 <type name="Notification" c:type="NotifyNotification*"/>
414 <record name="NotificationPrivate" c:type="NotifyNotificationPrivate">
416 <enumeration name="Urgency"
417 glib:type-name="NotifyUrgency"
418 glib:get-type="notify_urgency_get_type"
419 c:type="NotifyUrgency">
422 c:identifier="NOTIFY_URGENCY_LOW"
424 <member name="normal"
426 c:identifier="NOTIFY_URGENCY_NORMAL"
428 <member name="critical"
430 c:identifier="NOTIFY_URGENCY_CRITICAL"
431 glib:nick="critical"/>
433 <function name="get_app_name" c:identifier="notify_get_app_name">
434 <return-value transfer-ownership="none">
435 <type name="utf8" c:type="gchar*"/>
438 <function name="get_server_caps" c:identifier="notify_get_server_caps">
439 <return-value transfer-ownership="full">
440 <type name="GLib.List" c:type="GList*">
445 <function name="get_server_info" c:identifier="notify_get_server_info">
446 <return-value transfer-ownership="none">
447 <type name="boolean" c:type="gboolean"/>
450 <parameter name="ret_name"
453 transfer-ownership="full">
454 <type name="utf8" c:type="char**"/>
456 <parameter name="ret_vendor"
459 transfer-ownership="full">
460 <type name="utf8" c:type="char**"/>
462 <parameter name="ret_version"
465 transfer-ownership="full">
466 <type name="utf8" c:type="char**"/>
468 <parameter name="ret_spec_version"
471 transfer-ownership="full">
472 <type name="utf8" c:type="char**"/>
476 <function name="init" c:identifier="notify_init">
477 <return-value transfer-ownership="none">
478 <type name="boolean" c:type="gboolean"/>
481 <parameter name="app_name" transfer-ownership="none">
482 <type name="utf8" c:type="char*"/>
486 <function name="is_initted" c:identifier="notify_is_initted">
487 <return-value transfer-ownership="none">
488 <type name="boolean" c:type="gboolean"/>
491 <function name="uninit" c:identifier="notify_uninit">
492 <return-value transfer-ownership="none">
493 <type name="none" c:type="void"/>