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>atspi-event-listener</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
7 <link rel="home" href="index.html" title="libatspi Reference Manual">
8 <link rel="up" href="ch01.html" title="API reference">
9 <link rel="prev" href="libatspi-atspi-selection.html" title="atspi-selection">
10 <link rel="next" href="libatspi-atspi-hypertext.html" title="atspi-hypertext">
11 <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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">
17 <td><a accesskey="p" href="libatspi-atspi-selection.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.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">libatspi Reference Manual</th>
21 <td><a accesskey="n" href="libatspi-atspi-hypertext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#AtspiEventListener.synopsis" class="shortcut">Top</a>
26 <a href="#AtspiEventListener.description" class="shortcut">Description</a>
28 <a href="#AtspiEventListener.object-hierarchy" class="shortcut">Object Hierarchy</a>
31 <div class="refentry">
32 <a name="AtspiEventListener"></a><div class="titlepage"></div>
33 <div class="refnamediv"><table width="100%"><tr>
35 <h2><span class="refentrytitle"><a name="AtspiEventListener.top_of_page"></a>atspi-event-listener</span></h2>
36 <p>atspi-event-listener — A generic interface implemented by objects for the receipt of event
39 <td valign="top" align="right"></td>
41 <div class="refsynopsisdiv">
42 <a name="AtspiEventListener.synopsis"></a><h2>Synopsis</h2>
43 <pre class="synopsis"><span class="returnvalue">void</span> (<a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()">*AtspiEventListenerCB</a>) (<em class="parameter"><code>const <a class="link" href="libatspi-atspi-types.html#AtspiEvent"><span class="type">AtspiEvent</span></a> *event</code></em>,
44 <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);
45 <span class="returnvalue">void</span> (<a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()">*AtspiEventListenerSimpleCB</a>) (<em class="parameter"><code>const <a class="link" href="libatspi-atspi-types.html#AtspiEvent"><span class="type">AtspiEvent</span></a> *event</code></em>);
46 struct <a class="link" href="AtspiEventListener.html#AtspiEventListener-struct" title="struct AtspiEventListener">AtspiEventListener</a>;
47 struct <a class="link" href="AtspiEventListener.html#AtspiEventListenerClass" title="struct AtspiEventListenerClass">AtspiEventListenerClass</a>;
48 <a href="../gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-get-type" title="atspi_event_listener_get_type ()">atspi_event_listener_get_type</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
49 <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="returnvalue">AtspiEventListener</span></a> * <a class="link" href="AtspiEventListener.html#atspi-event-listener-new" title="atspi_event_listener_new ()">atspi_event_listener_new</a> (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> callback</code></em>,
50 <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
51 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>);
52 <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="returnvalue">AtspiEventListener</span></a> * <a class="link" href="AtspiEventListener.html#atspi-event-listener-new-simple" title="atspi_event_listener_new_simple ()">atspi_event_listener_new_simple</a> (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> callback</code></em>,
53 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>);
54 <a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-register" title="atspi_event_listener_register ()">atspi_event_listener_register</a> (<em class="parameter"><code><a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> *listener</code></em>,
55 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
56 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
57 <a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-register-from-callback" title="atspi_event_listener_register_from_callback ()">atspi_event_listener_register_from_callback</a>
58 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> callback</code></em>,
59 <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
60 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>,
61 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
62 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
63 <a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-register-no-data" title="atspi_event_listener_register_no_data ()">atspi_event_listener_register_no_data</a>
64 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> callback</code></em>,
65 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>,
66 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
67 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
68 <a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-deregister" title="atspi_event_listener_deregister ()">atspi_event_listener_deregister</a> (<em class="parameter"><code><a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> *listener</code></em>,
69 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
70 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
71 <a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-deregister-from-callback" title="atspi_event_listener_deregister_from_callback ()">atspi_event_listener_deregister_from_callback</a>
72 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> callback</code></em>,
73 <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
74 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
75 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
76 <a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="AtspiEventListener.html#atspi-event-listener-deregister-no-data" title="atspi_event_listener_deregister_no_data ()">atspi_event_listener_deregister_no_data</a>
77 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> callback</code></em>,
78 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
79 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
82 <div class="refsect1">
83 <a name="AtspiEventListener.object-hierarchy"></a><h2>Object Hierarchy</h2>
84 <pre class="synopsis">
85 <a href="../gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
86 +----AtspiEventListener
89 <div class="refsect1">
90 <a name="AtspiEventListener.description"></a><h2>Description</h2>
92 A generic interface implemented by objects for the receipt of event
93 notifications. atspi-event-listener is the interface via which clients of
94 the atspi-registry receive notification of changes to an application's user
95 interface and content.
98 <div class="refsect1">
99 <a name="AtspiEventListener.details"></a><h2>Details</h2>
100 <div class="refsect2">
101 <a name="AtspiEventListenerCB"></a><h3>AtspiEventListenerCB ()</h3>
102 <pre class="programlisting"><span class="returnvalue">void</span> (*AtspiEventListenerCB) (<em class="parameter"><code>const <a class="link" href="libatspi-atspi-types.html#AtspiEvent"><span class="type">AtspiEvent</span></a> *event</code></em>,
103 <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
105 A function prototype for callbacks via which clients are notified of AT-SPI events.
107 <div class="variablelist"><table border="0" class="variablelist">
109 <col align="left" valign="top">
114 <td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
115 <td>The event for which notification is sent. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
119 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
120 <td>User data which is passed to the callback each time a notification takes place.</td>
126 <div class="refsect2">
127 <a name="AtspiEventListenerSimpleCB"></a><h3>AtspiEventListenerSimpleCB ()</h3>
128 <pre class="programlisting"><span class="returnvalue">void</span> (*AtspiEventListenerSimpleCB) (<em class="parameter"><code>const <a class="link" href="libatspi-atspi-types.html#AtspiEvent"><span class="type">AtspiEvent</span></a> *event</code></em>);</pre>
130 Like <span class="type">AtspiEventlistenerCB</span>, but with no user_data.
132 <div class="variablelist"><table border="0" class="variablelist">
134 <col align="left" valign="top">
138 <td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
139 <td>The event for which notification is sent. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
145 <div class="refsect2">
146 <a name="AtspiEventListener-struct"></a><h3>struct AtspiEventListener</h3>
147 <pre class="programlisting">struct AtspiEventListener;</pre>
152 <div class="refsect2">
153 <a name="AtspiEventListenerClass"></a><h3>struct AtspiEventListenerClass</h3>
154 <pre class="programlisting">struct AtspiEventListenerClass {
155 GObjectClass parent_class;
162 <div class="refsect2">
163 <a name="atspi-event-listener-get-type"></a><h3>atspi_event_listener_get_type ()</h3>
164 <pre class="programlisting"><a href="../gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a> atspi_event_listener_get_type (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
169 <div class="refsect2">
170 <a name="atspi-event-listener-new"></a><h3>atspi_event_listener_new ()</h3>
171 <pre class="programlisting"><a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="returnvalue">AtspiEventListener</span></a> * atspi_event_listener_new (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> callback</code></em>,
172 <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
173 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>);</pre>
175 Creates a new <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> associated with a specified <em class="parameter"><code>callback</code></em>.
177 <div class="variablelist"><table border="0" class="variablelist">
179 <col align="left" valign="top">
184 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
185 <td>An <a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> to be called
186 when an event is fired. <span class="annotation">[<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span>
190 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
191 <td>data to pass to the callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
195 <td><p><span class="term"><em class="parameter"><code>callback_destroyed</code></em> :</span></p></td>
196 <td>A <a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> called when the listener is freed
197 and data associated with the callback should be freed. Can be NULL.</td>
200 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
201 <td>A new <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
208 <div class="refsect2">
209 <a name="atspi-event-listener-new-simple"></a><h3>atspi_event_listener_new_simple ()</h3>
210 <pre class="programlisting"><a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="returnvalue">AtspiEventListener</span></a> * atspi_event_listener_new_simple (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> callback</code></em>,
211 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>);</pre>
213 Creates a new <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> associated with a specified <em class="parameter"><code>callback</code></em>.
215 <div class="variablelist"><table border="0" class="variablelist">
217 <col align="left" valign="top">
222 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
223 <td>An <a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> to be called
224 when an event is fired. <span class="annotation">[<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span>
228 <td><p><span class="term"><em class="parameter"><code>callback_destroyed</code></em> :</span></p></td>
229 <td>A <a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> called when the listener is freed
230 and data associated with the callback should be freed. Can be NULL.</td>
233 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
234 <td>A new <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
241 <div class="refsect2">
242 <a name="atspi-event-listener-register"></a><h3>atspi_event_listener_register ()</h3>
243 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> atspi_event_listener_register (<em class="parameter"><code><a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> *listener</code></em>,
244 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
245 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
247 Adds an in-process callback function to an existing <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a>.
250 Legal object event types:
253 (property change events)
256 object:property-change
257 object:property-change:accessible-name
258 object:property-change:accessible-description
259 object:property-change:accessible-parent
260 object:property-change:accessible-value
261 object:property-change:accessible-role
262 object:property-change:accessible-table-caption
263 object:property-change:accessible-table-column-description
264 object:property-change:accessible-table-column-header
265 object:property-change:accessible-table-row-description
266 object:property-change:accessible-table-row-header
267 object:property-change:accessible-table-summary
270 (other object events)
274 object:children-changed
275 object:visible-data-changed
276 object:selection-changed
277 object:text-selection-changed
279 object:text-caret-moved
283 object:column-inserted
284 object:column-reordered
285 object:column-deleted
287 object:active-descendant-changed
299 window:desktop-create
300 window:desktop-destroy
326 NOTE: this character string may be UTF-8, but should not contain byte
328 (ascii ':'), except as a delimiter, since non-UTF-8 string
329 delimiting functions are used internally.
330 In general, listening to
331 toolkit-specific events is not recommended.
333 <div class="variablelist"><table border="0" class="variablelist">
335 <col align="left" valign="top">
340 <td><p><span class="term"><em class="parameter"><code>listener</code></em> :</span></p></td>
341 <td>The <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> to register against an event type.</td>
344 <td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
345 <td>a character string indicating the type of events for which
346 notification is requested. Format is
347 EventClass:major_type:minor_type:detail
348 where all subfields other than EventClass are optional.
349 EventClasses include "object", "window", "mouse",
350 and toolkit events (e.g. "Gtk", "AWT").
351 Examples: "focus:", "Gtk:GtkWidget:button_press_event".</td>
354 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
356 <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if successful, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.</td>
362 <div class="refsect2">
363 <a name="atspi-event-listener-register-from-callback"></a><h3>atspi_event_listener_register_from_callback ()</h3>
364 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> atspi_event_listener_register_from_callback
365 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> callback</code></em>,
366 <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
367 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>,
368 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
369 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
371 Registers an <a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> against an <em class="parameter"><code>event_type</code></em>.
373 <div class="variablelist"><table border="0" class="variablelist">
375 <col align="left" valign="top">
380 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
381 <td>the <a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> to be registered
382 against an event type. <span class="annotation">[<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span>
386 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
387 <td>User data to be passed to the callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
391 <td><p><span class="term"><em class="parameter"><code>callback_destroyed</code></em> :</span></p></td>
392 <td>A <a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> called when the callback is destroyed.</td>
395 <td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
396 <td>a character string indicating the type of events for which
397 notification is requested. See <a class="link" href="AtspiEventListener.html#atspi-event-listener-register" title="atspi_event_listener_register ()"><span class="type">atspi_event_listener_register</span></a>
398 for a description of the format.</td>
401 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
403 <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if successfull, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.</td>
409 <div class="refsect2">
410 <a name="atspi-event-listener-register-no-data"></a><h3>atspi_event_listener_register_no_data ()</h3>
411 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> atspi_event_listener_register_no_data
412 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> callback</code></em>,
413 <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> callback_destroyed</code></em>,
414 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
415 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
417 Registers an <span class="type">AtspiEventListenetSimpleCB</span>. The method is similar to
418 <a class="link" href="AtspiEventListener.html#atspi-event-listener-register" title="atspi_event_listener_register ()"><span class="type">atspi_event_listener_register</span></a>, but <em class="parameter"><code>callback</code></em> takes no user_data.
420 <div class="variablelist"><table border="0" class="variablelist">
422 <col align="left" valign="top">
427 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
428 <td>the <a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> to be
429 registered against an event type. <span class="annotation">[<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span>
433 <td><p><span class="term"><em class="parameter"><code>callback_destroyed</code></em> :</span></p></td>
434 <td>A <a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> called when the callback is destroyed.</td>
437 <td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
438 <td>a character string indicating the type of events for which
439 notification is requested. Format is
440 EventClass:major_type:minor_type:detail
441 where all subfields other than EventClass are optional.
442 EventClasses include "object", "window", "mouse",
443 and toolkit events (e.g. "Gtk", "AWT").
444 Examples: "focus:", "Gtk:GtkWidget:button_press_event".</td>
447 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
449 <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if successfull, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.</td>
455 <div class="refsect2">
456 <a name="atspi-event-listener-deregister"></a><h3>atspi_event_listener_deregister ()</h3>
457 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> atspi_event_listener_deregister (<em class="parameter"><code><a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> *listener</code></em>,
458 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
459 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
461 Deregisters an <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> from the registry, for a specific
464 <div class="variablelist"><table border="0" class="variablelist">
466 <col align="left" valign="top">
471 <td><p><span class="term"><em class="parameter"><code>listener</code></em> :</span></p></td>
472 <td>The <a class="link" href="AtspiEventListener.html" title="atspi-event-listener"><span class="type">AtspiEventListener</span></a> to deregister.</td>
475 <td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
476 <td>a string specifying the event type for which this
477 listener is to be deregistered.</td>
480 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
482 <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if successful, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.</td>
488 <div class="refsect2">
489 <a name="atspi-event-listener-deregister-from-callback"></a><h3>atspi_event_listener_deregister_from_callback ()</h3>
490 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> atspi_event_listener_deregister_from_callback
491 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> callback</code></em>,
492 <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
493 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
494 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
496 Deregisters an <a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> from the registry, for a specific
499 <div class="variablelist"><table border="0" class="variablelist">
501 <col align="left" valign="top">
506 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
507 <td>the <a class="link" href="AtspiEventListener.html#AtspiEventListenerCB" title="AtspiEventListenerCB ()"><span class="type">AtspiEventListenerCB</span></a> registered against an
508 event type. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
512 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
513 <td>User data that was passed in for this callback. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
517 <td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
518 <td>a string specifying the event type for which this
519 listener is to be deregistered.</td>
522 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
524 <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if successful, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.</td>
530 <div class="refsect2">
531 <a name="atspi-event-listener-deregister-no-data"></a><h3>atspi_event_listener_deregister_no_data ()</h3>
532 <pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> atspi_event_listener_deregister_no_data
533 (<em class="parameter"><code><a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> callback</code></em>,
534 <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *event_type</code></em>,
535 <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
537 deregisters an <a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> from the registry, for a specific
540 <div class="variablelist"><table border="0" class="variablelist">
542 <col align="left" valign="top">
547 <td><p><span class="term"><em class="parameter"><code>callback</code></em> :</span></p></td>
548 <td>the <a class="link" href="AtspiEventListener.html#AtspiEventListenerSimpleCB" title="AtspiEventListenerSimpleCB ()"><span class="type">AtspiEventListenerSimpleCB</span></a> registered against
549 an event type. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
553 <td><p><span class="term"><em class="parameter"><code>event_type</code></em> :</span></p></td>
554 <td>a string specifying the event type for which this
555 listener is to be deregistered.</td>
558 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
560 <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if successful, otherwise <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a>.</td>
569 Generated by GTK-Doc V1.18.1</div>