53126ce68e640ee32dcbdd1b64cc0e2246dff39f
[platform/core/uifw/at-spi2-atk.git] / ChangeLog
1 2001-12-08  Michael Meeks  <michael@ximian.com>
2
3         * at-bridge/bridge.c (bridge_focus_tracker),
4         (emit_eventv): fix the same ref. leak.
5         (register_atk_event_listeners): don't leak.
6
7         * cspi/spi-listener-impl.c (cspi_event): more 
8         protection from client code.
9
10         * test/test-simple.c (test_desktop): unref the app.
11
12         * test/Makefile.am: upd. TESTS.
13
14         * at-bridge/bridge.c (bridge_exit_func): release the registry.
15
16         * test/keysynth-demo.c (keysynth_exit): unref the listeners.
17
18         * cspi/spi_accessible.c (Accessible_queryInterface): constify.
19
20         * cspi/spi_registry.c: constify in strings.
21         (deregisterGlobalEventListenerAll): don't release the ref.
22
23         * cspi/spi.h: start removing redundant / conflicting
24         gtkdoc comments, making the API readable at a glance :-)
25         
26         * cspi/spi_event.c (AccessibleEventListener_unref): impl.
27
28         * test/keysynth-demo.c (keysynth_exit, main): upd.
29
30         * test/simple-at.c (main, simple_at_exit): upd.
31
32         * test/test-simple.c (unutterable_horror): kill.
33         (utterable_normal_derefs): kill.
34         (main): upd & do a setenv before gtk_init, so that we
35         can use memprof - and to save the pain of remembering
36         this, if we're running under memprof - don't exit.
37
38         * cspi/spi_main.c (SPI_exit): return exit status
39         for cspi.
40         (SPI_event_quit): impl.
41         (SPI_event_main): simplify.
42         (cspi_is_gnome_app): kill.
43         (SPI_init): kill isGNOMEapp arg.
44
45         * at-bridge/bridge.c (register_atk_event_listeners):
46         re-instate the unref.
47         (bridge_exit_func): don't re-activate the registry,
48         protect vs. theoretical re-entry, use the
49         AT_BRIDGE_SHUTDOWN env. var to determine whether to
50         assert a clean shutdown - for regression tests.
51
52 2001-12-08  Abel Cheung  <maddog@linux.org.hk>
53
54         * configure.in: Comment out dummy i18n support for now,
55           otherwise it fails to build.
56         * idl/Makefile.am: Add Selection.idl and Hypertext.idl to
57           EXTRA_DIST. They are missing in tarball.
58
59 2001-12-07  Michael Meeks  <michael@ximian.com>
60
61         * util/magnifier.c: kill bonobo activation reg. race.
62
63         * libspi/component.c
64         (impl_accessibility_component_get_extents): make it match
65         it's sig.
66
67         * libspi/registry.c (_registry_notify_listeners):
68         re-remove X headers & reconcile conflicts.
69         (spi_listener_struct_free): bad conflict resolve.
70         (impl_accessibility_registry_register_application):
71         more bad merging fixed.
72         (impl_accessibility_registry_deregister_application): ditto.
73         (spi_registry_new): ditto.
74         (spi_registry_init): don't have an applications field.
75
76 [ merge fixups2 branch to here ]
77 2001-12-07  Michael Meeks  <michael@ximian.com>
78
79         * test/simple-at.c (report_focus_event),
80         (report_focussed_accessible): remove g_warning debug.
81
82 2001-12-07  Michael Meeks  <michael@ximian.com>
83
84         * test/test-simple.c (validate_tree): comment out some checks.
85         (test_desktop): app now not registered idly - horay.
86
87 2001-12-07  Michael Meeks  <michael@ximian.com>
88
89         * cspi/spi_registry.c
90         (registerAccessibleKeystrokeListener): clean, stop it leaking
91         great swathes of memory, and device event controller references.
92         ensure we always pass valid sequences.
93         (deregisterAccessibleKeystrokeListener): ditto.
94         (generateKeyEvent): upd.
95
96         * at-bridge/bridge.c (bridge_key_listener): handle
97         registry dead exception gracefully.
98         (bridge_focus_tracker, emit_eventv): free ev.
99
100         * test/simple-at.c (report_focus_event): fix polarity.
101
102         * libspi/application.c (notify_listeners): kill the ev
103         argument, and make sure we init the ev we use.
104         (spi_application_object_event_listener): split out a chunk
105         (get_atk_object_ref): here & fixup.
106         (reverse_lookup_name_for_toolkit_event): make const.
107         (spi_application_toolkit_event_listener): fixup, kill leaks
108         ref problems etc.
109
110         * at-bridge/bridge.c (register_atk_event_listeners):
111         don't unref the noop object - causes grief.
112
113         * libspi/registry.c: remove the X headers.
114         turn off the debug churn.
115
116         * libspi/accessible.c (spi_accessible_new_return): only
117         release the ref if we are supposed to [doh]
118
119         * test/simple-at.c (report_button_press, report_focus_event):
120         guard vs. unexpected exit.
121
122         * at-bridge/bridge.c (gtk_module_init): prune printf.
123         (bridge_exit_func): fix app unref.
124
125         * libspi/Makefile.am: don't install registry or desktop.h
126
127         * libspi/*.h: update includes.
128
129         * libspi/application.h: don't include ourself, or
130         other redundant headers.
131
132 2001-12-06  Michael Meeks  <michael@ximian.com>
133
134         * libspi/accessible.c
135         (get_accessible_from_servant): impl.
136         Upd. all CORBA impl.s to use it killing cut and paste.
137
138         * cspi/spi_main.c (cspi_cleanup): guard vs. double
139         invokes.
140         (SPI_init): register atexit cleanup handler here.
141
142 2001-12-06  Michael Meeks  <michael@ximian.com>
143
144         * at-bridge/bridge.c (gtk_module_init): g_error on
145         activation exception
146
147 2001-12-06  Michael Meeks  <michael@ximian.com>
148
149         * at-bridge/bridge.c (gtk_module_init): some sort of
150         confusing merge clash - reverted.
151         (bridge_idle_init): ditto.
152
153         * test/test-simple.c (main, utterable_normal_derefs):
154         merge from Bill - somehow not committed.
155
156 2001-12-06  Michael Meeks  <michael@ximian.com>
157
158         * libspi/value.c (spi_value_class_init): upd.
159         (spi_value_finalize): kill.
160
161         * libspi/table.c (spi_table_finalize): kill.
162         (spi_table_interface_new): upd.
163         (spi_table_class_init): upd.
164         (get_table_from_servant): impl.
165         Upd. all CORBA impl.s to use it killing yet more cut and paste.
166
167         * libspi/selection.c (spi_selection_finalize): kill.
168         (spi_selection_interface_new): upd.
169         (spi_selection_class_init): upd.
170         (get_selection_from_servant): impl.
171         Upd. all CORBA impl.s to use it killing yet more cut and paste.
172
173         * libspi/relation.c (spi_relation_finalize): kill.
174         (spi_relation_class_init, spi_relation_new): upd
175
176         * libspi/image.c (spi_image_finalize): kill.
177         (spi_image_class_init): upd.
178         (spi_image_interface_new): upd.
179         (get_image_from_servant): impl.
180         Upd. all CORBA impl.s to use it killing yet more cut and paste.
181
182         * libspi/hyperlink.c (spi_hyperlink_class_init): upd.
183         (spi_hyperlink_finalize): kill.
184         (spi_hyperlink_new): upd.
185         (get_hyperlink_from_servant): impl.
186         Upd. all CORBA impl.s to use it killing yet more cut and paste.
187
188         * libspi/hypertext.c (spi_hypertext_interface_new): upd.
189         (spi_hypertext_finalize): kill.
190         (spi_hypertext_class_init): upd.
191         (get_hypertext_from_servant): impl.
192         Upd. all CORBA impl.s to use it killing yet more cut and paste.
193
194         * libspi/editabletext.c (spi_editable_text_finalize): kill.
195         (spi_editable_text_interface_new): upd.
196         (get_editable_text_from_servant): impl.
197         Upd. all CORBA impl.s to use it killing yet more cut and paste.
198         
199         * libspi/text.c (get_text_from_servant): impl.
200         All impls - update to use it killing more cut and paste,
201         also fix bad string returns on duff args ( a somewhat
202         impossible case to handle - but hey ).
203         (spi_text_construct): impl.
204         (spi_text_interface_new): upd.
205         (spi_text_object_finalize): kill.
206
207         * libspi/component.c
208         (accessibility_component_object_finalize): kill.
209         (spi_component_class_init): upd.
210         (get_component_from_servant): impl. helper to kill cut & paste.
211         (impl_accessibility_component_contains): 
212         (impl_accessibility_component_get_accessible_at_point): 
213         (impl_accessibility_component_get_position): 
214         (impl_accessibility_component_get_extents): 
215         (impl_accessibility_component_get_mdi_z_order): 
216         (impl_accessibility_component_get_layer): 
217         (spi_component_interface_new): upd.
218
219         * libspi/action.c (spi_action_finalize): kill.
220         (spi_action_class_init): upd. inherit from SpiObject.
221         (spi_action_interface_new): upd.
222         (get_action_from_servant): impl. helper to reduce cut & paste.
223         (impl_getKeyBinding, impl_getName, impl_doAction),
224         (impl_getDescription): Use it everywhere.
225
226         * cspi/spi_main.c (get_live_refs): a pointer hash.
227         (spi_object_hash, spi_object_equal): comment out.
228         There are issues with CORBA object hashing that need
229         solving.
230
231         * libspi/application.c (spi_application_init),
232         (spi_application_new): upd.
233
234         * libspi/accessible.c (spi_accessible_object_finalize): kill.
235         (spi_accessible_class_init): upd.
236         s/accessible/object/ in epv methods.
237
238 2001-12-05  Bill Haneman <bill.haneman@sun.com>
239
240         * at-bridge/bridge.c:
241         Reorder the bridge initialization into the bridge gtk_module_init,
242         an immediate call to bridge_register_app, and an idle_add for
243         register_atk_event_listeners (the only code that *must* wait until
244         GTK+ is initialized) via bridge_idle_add. Bridge_register_app does
245         the activation, creates the application's Accessible object, and
246         queues the bridge_idle_init function.  Restored call to
247         Accessibility_Registry_deregisterApplication().  
248         Prior to making this call we obtain a new reference to the
249         registry, which is a temporary hack that helps us handle apps that
250         shut down the bonobo mainloop before we get there.
251
252         * libspi/registry.c:
253         Fix string leakage in debug block, and don't segv if a an app
254         dies before its event notifications have been propagated.
255
256         * cpi/spi_util.c:
257         Modify cspi_check_ev() to call g_warning() rather than g_error(),
258         as stopgap measure until we get proper exception handling when 
259         objects die during or before interrogation.  
260
261         * cspi/spi_main.c:
262         * cspi/spi.h:
263         Moved use of isGNOMEApp flag from SPI_event_main to SPI_init.
264         Also changed default value of is_gnome_app to TRUE.
265
266         * test/simple-at.c:
267         * test/keysynth-demo.c:
268         Changed use of SPI_init and SPI_event_main to reflect API change above.
269
270         * test/simple-at.c:
271         Made report_focus_event check the warning value from getName
272         before reporting on focussed accessible; simplifies handling of
273         notifications from dead objects.
274
275         * test/test-simple.c: (Changes not in this patch since source is
276         not in CVS ?)
277         
278 2001-12-05  Michael Meeks  <michael@ximian.com>
279
280         * registryd/registryd.c (main): protect against
281         bonobo-activation startup race condition.
282
283         * cspi/spi_main.c (cspi_object_add_check): cope
284         with the exception elegantly.
285
286         * idl/Accessible.idl: decl. ChildGone
287
288         * libspi/desktop.c (spi_desktop_dispose): impl.
289         (spi_desktop_class_init): upd.
290         (spi_desktop_add_application),
291         (spi_desktop_remove_application),
292         (abnormal_application_termination): impl.
293         (impl_desktop_get_child_at_index): re-impl.
294
295         * libspi/registry.c
296         (impl_accessibility_registry_deregister_application),
297         (impl_accessibility_registry_register_application): 
298         kill excessive debug clutter.
299
300         * test/test-simple.c (test_misc): test some NULL
301         tolerance. (main): upd.
302
303         * cspi/spi_main.c (cspi_accessible_is_a): a NULL
304         implements no interfaces - so let's not crash.
305
306         * cspi/spi_accessible.c (Accessible_queryInterface): ditto.
307
308         * libspi/accessible.c (spi_accessible_new_return): impl.
309         helper to calm the cut and paste, to cope with
310         NULL AtkObjects effectively and efficiently, and to kill
311         the referencing bugs.
312
313         * libspi/table.c (impl_getAccessibleAt),
314         (impl_getRowHeader, impl_getColumnHeader): upd.
315
316         * libspi/hyperlink.c (impl_getObject): upd.
317
318         * libspi/accessible.c
319         (impl_accessibility_accessible_get_child_at_index): upd.
320
321         * libspi/component.c
322         (impl_accessibility_component_get_accessible_at_point): upd.
323
324         * test/test-simple.c (test_editable_text, test_text): impl.
325         some simple tests.
326
327         * cspi/spi_editabletext.c
328         (AccessibleEditableText_insertText): constify.
329
330         * test/test-simple.c (focus_me): make more robust.
331
332         * libspi/accessible.c: remove some printfs in methods that
333         we test and work fine, so we can get a clean tree dump.
334
335         * test/test-simple.c (validate_accessible),
336         (validate_tree): make tree dumping pretty too.
337
338         * at-bridge/bridge.c (bridge_signal_listener): upd. so
339         it builds without debug on.
340
341         * test/test-simple.c (validate_accessible): fix the most
342         ludicrous bug.
343
344         * cspi/spi_main.c (spi_object_release): leave the nicely
345         blanked memory around if in debug mode.
346
347         * cspi/spi-listener-impl.c (cspi_event): use add_check.
348
349 [committed to fixups2]
350 2001-12-05  Michael Meeks  <michael@ximian.com>
351
352         * libspi/editabletext.c
353         (spi_editable_text_class_init): g_type_class_peek_parent,
354         not interface peek - so we finalize cleanly.
355
356         * libspi/accessible.c (spi_accessible_new): kill debug.
357
358         * test/test-simple.c (validate_accessible): fix ref.
359         leak, print strings before freeing them; sigh, comment a
360         chunk out due to strangeness.
361         (validate_tree): unref the child after use.
362
363         * cspi/spi_component.c (AccessibleComponent_getLayer):
364         add missing break statement, switch on zlayer not the
365         uninitialized retval.
366
367         * cspi/spi_main.c (cspi_object_add): add assert, local ref
368         before (possibly re-entering) remote unref.
369
370         * test/simple-at.c (main): unref the desktop.
371
372         * cspi/spi_accessible.c (cspi_accessible_is_a): move 
373         into:
374         
375         * cspi/spi_main.c (cspi_accessible_is_a): here to 
376         isolate bonobo API usage more.
377
378         * libspi/registry.c (impl_accessibility_registry_register_application): 
379         prune bogus comment.
380
381 2001-12-04  Michael Meeks  <michael@ximian.com>
382
383         * test/test-simple.c (validate_tree): upd.
384         IndexInParent check to make it more lucid.
385         (validate_accessible): dump the tree.
386
387         * libspi/accessible.c (de_register_public_ref),
388         (get_public_refs): impl.
389         (spi_accessible_new): make more efficient & intuitive.
390         Now IndexInParent check works.
391
392 2001-12-04  Michael Meeks  <michael@ximian.com>
393
394         * cspi/spi-util.h: remove.
395
396         * cspi/spi.h: move SPI_freeString here
397
398         * libspi/component.c (impl_accessibility_component_get_layer): 
399         warning fixage.
400         (impl_accessibility_component_get_mdi_z_order): ditto,
401         return -1 on error - is this ok ?
402
403         * test/test-simple.c (test_application): impl.
404
405         * cspi/spi_accessible.c (Accessible_getApplication),
406         (Accessible_isApplication): impl.
407
408         * libspi/registry.c (spi_listener_struct_free): release
409         the CORBA reference too.
410
411         * libspi/accessible.c
412         (impl_accessibility_accessible_get_parent): fix ref leak.
413
414         * libspi/registry.c (spi_registry_new): make the registry
415         immortal - we don't want it to go away ever.
416
417         * libspi/application.c
418         (spi_accessible_application_finalize): impl. cleanup.
419
420         * cspi/spi_registry.c
421         (deregisterGlobalEventListenerAll),
422         (deregisterGlobalEventListener),
423         (deregisterAccessibleKeystrokeListener): fix ref leak.
424
425         * cspi/spi_main.c (SPI_init): remove redundant ref.
426
427         * test/test-simple.c (unutterable_horror): impl. to force a
428         clean shutdown.
429         (main): use it.
430
431         * libspi/registry.c
432         (impl_accessibility_registry_deregister_application): release
433         the application when we de-register it.
434
435         * at-bridge/bridge.c (bridge_exit_func): comment out shutdown
436         until we have the infastructure to get it right.
437
438 2001-12-03  Michael Meeks  <michael@ximian.com>
439
440         * libspi/Makefile.am: only build eventlistener.[ch]
441
442         * libspi/accessible.c
443         (impl_accessibility_accessible_get_child_at_index): don't leak.
444
445         * at-bridge/bridge.c (bridge_exit_func): cope with an exit
446         before we hit the idle handler.
447
448         * cspi/spi-util.c (cspi_check_ev): g_error is far nicer for
449         debugging than exit.
450
451         * at-bridge/bridge.c (bridge_focus_tracker): fix ref issue.
452
453         * libspi/listener.c (impl_notify_event): check source
454         not NIL before unref.
455
456         * libspi/registry.c (impl_registry_notify_event): ditto.
457
458         * libspi/eventlistener.c
459         (impl_accessible_event_notify_event): unref the source.
460
461         * libspi/accessibleeventlistener.c
462         (impl_accessible_event_notify_event): unref the source.
463
464         * idl/Event.idl: remove 'hash_id' attribute - of no
465         concievable use.
466
467         * libspi/application.c (notify_listeners): upd list
468         iteration & sig.
469         (spi_application_object_event_listener), 
470         (spi_application_toolkit_event_listener): upd to do correct
471         CORBA ref counting.
472
473         * libspi/registry.c
474         (_registry_notify_listeners): update.
475         (parse_event_type): this method also leaks like a sieve.
476         (impl_accessibility_registry_deregister_global_event_listener): 
477         fix ETYPE_WINDOW case.
478
479         * libspi/application.c
480         (impl_accessibility_application_register_object_event_listener): 
481         kill leak.
482
483         * libspi/hyperlink.c (impl_getObject): fix ref mistake.
484
485         * libspi/hypertext.c (impl_getLink): ditto.
486
487         * cspi/spi_main.c (cspi_object_add): remove
488         bogus CORBA_Object_duplicate.
489
490         * cspi/spi-listener-impl.c (cspi_event): dup/ref
491         on the object_add.
492
493         * cspi/spi_accessible.c
494         (Accessible_getRelationSet): fix leak / referencing issue.
495
496         * cspi/spi_main.c (spi_object_hash, spi_object_equal): impl.
497         (cspi_object_add, cspi_object_unref): upd.
498         (spi_object_release, get_live_refs): impl.
499         (cspi_cleanup): simplify.
500
501         * *.[ch]: s/boolean/SpiBoolean/
502
503         * cspi/spi_accessible.c (role_names): actualy order so it
504         corresponds with the enum !
505
506         * test/test-simple.c (test_roles): check some role strings
507         vs. enums to detect offset errors.
508
509 2001-12-01  Michael Meeks  <michael@ximian.com>
510
511         * cspi/spi_main.c (cspi_object_add_check): impl. helper.
512
513         * cspi/spi_accessible.c (Accessible_getChildAtIndex):
514         check ev before 
515         (Accessible_getChildAtIndex): use cspi_add_check so we
516         check the ev before using a (possibly) invalid value.
517
518         * libspi/accessible.c
519         (impl_accessibility_accessible_get_parent): don't segv
520         on a NULL parent.
521
522         * at-bridge/bridge.c (gtk_module_init): upd.
523         (bridge_property_event_listener): don't leak strings
524         and events !
525         (bridge_state_event_listener),
526         (bridge_property_event_listener): don't use a static
527         buffer in case of recursive event emission &
528         re-enterancy - split out the swathe of cut and paste
529         into:
530         (emit_eventv): and fix 2 ref leaks here & comply to the
531         coding style.
532         (bridge_register_app): rename to 
533         (bridge_idle_init): this and kill arg parsing, split
534         various inits & bonobo-activation registration to module
535         init time, kill referencing error.
536         (bridge_exit_func): fix the same leak.
537         (bridge_focus_tracker): don't leak event structures
538         and strings.
539         (bridge_signal_listener): more leakage and cut & paste
540         fixage.
541         (bridge_key_listener): return the result - FIXME is
542         this polarity correct ?
543         (accessibility_keystroke_from_atk_key_event): rename
544         (accessibility_init_keystroke_from_atk_key_event): and stop
545         leakage.
546         (gtk_module_init): return a value - not that it is checked by
547         Gtk - but hey.
548         (bridge_key_listener): register my horror at casting between
549         IDL defined structs.
550         (bridge_get_registry): kill - not used.
551
552         * cspi/spi_accessible.c (Accessible_getRole): make return const.
553
554         * test/test-simple.c (test_roles): impl.
555         (test_desktop, validate_accessible, validate_tree): impl.
556
557         * cspi/spi_accessible.c (role_names): fixup bogus
558         MAX_ROLES setup, make constants const for efficient linkage
559         (AccessibleRole_getName): conform to coding style, make
560         return 'const'
561
562 2001-11-30  Michael Meeks  <michael@ximian.com>
563
564         * cspi/spi.h: add missing prototype.
565
566         * libspi/registry.c (spi_listener_struct_new): fix sig.
567
568         * test/Makefile.am: add test-simple
569
570         * test/test-simple.c: add
571
572         * test/test.sh: add.
573
574         * cspi/spi_main.c (SPI_init): make SPI_inited module global,
575
576         * at-bridge/bridge.c (gtk_module_init): don't do an idle init,
577         do it straight - since otherwise we often get an activation race.
578
579 [ work before Bill duplicated a chunk of it ... ]
580 2001-11-30  Michael Meeks  <michael@ximian.com>
581
582         * libspi/keystrokelistener.c
583         (spi_keystroke_listener_class_init): fixup arg
584         count (doh).
585
586         * libspi/eventlistener.c
587         (spi_event_listener_class_init): ditto.
588
589         * tests/test.sh: add.
590
591         * cspi/spi-listener-impl.h: update macros.
592
593         * cspi/spi-listener-impl.c
594         (cspi_event_listener_remove_callback): add
595         correct pre-conditions.
596
597         * cspi/spi_main.c (SPI_exit): guard vs. double
598         exits, exit the mainloop nicely.
599         (SPI_event_main): make more sense.
600         (SPI_init): move the atexit evilness here so we
601         always do it (yuck).
602         (SPI_event_main): upd.
603
604         * test/simple-at.c: update for listener changes.
605
606         * registryd/registryd.c (main): prune kruft.
607
608         * libspi/libspi.h: upd.
609
610         * libspi/eventlistener.[ch]: rename broken macros.
611
612         * libspi/accessibleeventlistener.[ch]: remove.
613
614         * libspi/*.[ch]: IS_SPI_... -> SPI_IS_...
615
616         * test/test-simple.c: Add - automated tests.
617
618         * cspi/spi-listener-impl.c (cspi_event),
619         (cspi_key_event): add user_data to invoke.
620         (cspi_keystroke_listener_finalize): impl.
621         (cspi_keystroke_listener_class_init): upd.
622
623         * cspi/spi_event.c
624         (createAccessibleEventListener),
625         (AccessibleEventListener_addCallback),
626         (createAccessibleKeystrokeListener),
627         (AccessibleKeystrokeListener_addCallback): upd.
628
629         * libspi/deviceeventcontroller.c
630         (spi_device_event_controller_check_key_event): add public proto.
631
632         * libspi/registry.c
633         (impl_accessibility_registry_deregister_global_event_listener): 
634         always init listeners.
635         (_registry_notify_listeners): yes it is.
636
637         * cspi/spi-listener-impl.c (cspi_key_event): 
638         move debug to here.
639         (cspi_event_listener_finalize): impl.
640         (cspi_event_listener_class_init): hook up.
641         (event_handler_new, event_handler_free),
642         (event_list_remove_by_callback): impl.
643         (cspi_event_listener_remove_callback),
644         (cspi_keystroke_listener_remove_callback),
645         (cspi_keystroke_listener_add_callback),
646         (cspi_event_listener_add_callback): upd.
647
648         * libspi/keystrokelistener.c
649         (keystroke_listener_object_finalize): kill
650         (spi_keystroke_listener_class_init): upd.
651         (spi_keystroke_listener_add_callback),
652         (spi_keystroke_listener_remove_callback): kill,
653         use signals.
654         (impl_key_event): prune drasticaly.
655
656         * libspi/eventlistener.c
657         (spi_event_listener_add_callback),
658         (spi_event_listener_remove_callback): kill, use
659         signals.
660         (impl_accessible_event_notify_event): upd.
661         (spi_event_listener_object_finalize): remove.
662
663         * libspi/Makefile.am: use eventlistener.[ch]
664
665 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
666
667         * libspi/registry.c (_registry_notify_listeners):
668         Changed listener loop iteration to use preferred convention.
669         Got rid of string memory leaks caused be calling g_strconcat
670         inside function calls.
671
672         * libspi/registry.c (parse_event_type):
673         Stopped g_strconcat memory leaks, free the g_strsplit return,
674         g_strdup the split pieces when used, etc.
675
676 2001-12-04  Bill Haneman  <bill.haneman@sun.com>
677
678         * idl/State.idl: 
679         Change method 'compare' to return a 'difference set' rather than
680         taking a StateSet as an out parameter (more Java-friendly).
681
682         * idl/Accessible.idl:
683         Added CORBA struct 'BoundingBox', to faciliate API changes below:
684         
685         * idl/Component.idl:
686         * idl/Image.idl:
687         Changed methods 'getExtents' and 'getImageExtents' in these
688         interfaces to return a BoundingBox structure.  
689         (getPosition and getSize are redundant and possibly should be
690         removed, rather than creating a corresponding Point struct.)
691
692         * cspi/spi_component.c:
693         Modify implementation of getExtents to reflect the above IDL
694         change.
695         
696         * cspi/spi_image.c:
697         * cspi/spi.h:
698         Add (missing) AccessibleImage_getExtents () API.
699
700         * docs/reference/cspi/at-spi-cspi-sections.txt:
701         Added AccessibleImage_getImageExtents () to docs.
702         
703 2001-12-03  Bill Haneman  <bill.haneman@sun.com>
704
705         * idl/Component.idl:
706         Added two methods, getLayer () and getMDIZOrder (), to reflect
707         the new ATK methods atk_object_get_layer and
708         atk_object_get_mdi_z_order. (Which arguably should be part of the
709         AtkComponent API and AtkObject).  Also added an enum,
710         ComponentLayer, for the first method's return value.
711
712         * libspi/component.c:
713         Added implementations for these methods.
714
715         * cspi/spi_component.c:
716         * cspi/spi.h:
717         Added cspi binding methods for above, 
718         AccessibleComponent_getLayer() and
719         AccessibleComponent_getMDIZOrder().
720         Added cspi enum 'AccessibleComponentLayer'.
721
722         * docs/reference/cspi/at-spi-cspi-sections.txt:
723         Added above methods to docs.
724
725         * cspi/spi-impl.h:
726         * cspi/spi*.[ch]:
727         Changed typedef for 'boolean' type (and all references to it) to
728         SPIBoolean, to avoid keyword clashes with C++.
729
730         * test/simple-at.c:
731         Changed usages of 'boolean' to SPIBoolean.
732
733         * test/keysynth-demo.c:
734         Changed usages of 'boolean' to 'gboolean' (since this is a gnome
735         app), except where SPIBoolean is required by the callbacks API.
736         
737 2001-12-02  Bill Haneman  <bill.haneman@sun.com>
738
739         * cspi/spi_registry.c:
740         Removed obsolete X event loop for passive keygrabs (which now
741         lives in libspi).
742
743         * registryd/registryd.c:
744         Removed unnecessary call to gdk_init() [cruft]. This also allows
745         removal of requisite gdk-2.0 from REGISTRYD_LIBS/CFLAGS in
746         * configure.in.
747
748 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
749
750         * docs/reference/cspi:
751         Included docs for SPI_freeString in generated documentation.
752
753         * cspi/spi-util.c:c
754         Renamed spi_freeString to SPI_freeString, for consistency.  Added
755         documentation for this function.
756
757         * cspi/spi-util.h:
758         Renamed spi_freeString to SPI_freeString, for consistency.  
759         Removed obsolete method declaration string_from_corba_string.
760
761         * test/keysynth-demo.c:
762         Small tweak to comments.
763
764         * test/simple-at.c:
765         Stopped leaking the strings returned from CSPI. 
766
767 2001-11-28  Bill Haneman  <bill.haneman@sun.com>
768
769         Merged Michael's branch (see his ChangeLog entries below).
770         
771         * at-bridge/bridge.c: Explicitly hold a ref to the registry while
772         bridge is alive, release on exit.
773         
774         * cspi/spi-listener-impl.c (cspi_event_listener_add_callback):
775         Fix type check macro.
776         
777         * cspi/spi_event.c:
778         Added AccessibleKeystrokeListener_unref() method to reduce leakage.
779         
780         * cspi/spi_main.c: 
781         Added is_gnome_app static, and method cspi_is_gnome_app(), 
782         so we can call the appropriate shutdown routine at exit in SPI_exit.
783         
784         * cspi/spi_main.c (cspi_object_ref):
785         Duplicate the corba object passed in, since we're keeping it around.
786         
787         * cspi/SPI_exit.c, cspi_cleanup:
788         Moved the releasing of the live refs to its own function, so we
789         can put it in g_atexit ().  Call the appropriate shutdown API
790         depending on whethe calling client is a gnome app or not
791         (bonobo_main_quit or CORBA_ORB_shutdown).
792         
793         * cspi/spi_registry.c (deregisterGlobalEventListenerAll):
794         Unref the listener when this method is called, after
795         deregistration.  Updated the API docs to note this behavior.
796
797         * libspi/accessible.c (impl_get_parent, impl_get_child_at_index):
798         Bugfixes: Ref the bonobo object when returning a parent or child 
799         reference, or an AccessibleRelation.  Generally made sure
800         BonoboObject refcount is incremented whenever we return an
801         Accessible.
802
803         * libspi/accessibleeventlistener.c (spi_event_listener_class_init):
804         Fixed typo/bug in signal declaration.
805         
806         * libspi/accessibleeventlistener.h:
807         Fixed a type macro.
808
809         * libspi/application.c (spi_application_new):
810         Fixed leak in initialization.
811
812         * libspi/desktop.c:
813         Remembered to increment bonobo-object refcount when returning
814         children (applications) from desktop object.
815         Added (empty) finalize method.
816
817         * libspi/deviceeventcontroller.c:
818         Hold a ref to listeners inside DEControllerKeyListeners.
819         Added dec_key_listener_free() method.  Use prepend instead of
820         append in key_listener list.  Fixed some refcount madness and
821         leaks in the listener registration/deregistration - deregistration
822         now calls dec_key_listener_free() on listeners, and on the
823         temporarily constructed dec_key_listener() used to perform the search/match.
824
825         * libspi/hypertext.c (spi_hypertest_finalize):
826         Fixed 'double unref' of AtkObject held by parent SpiAccessibleText
827         class.  Also fixed spi_hypertext_interface_new() and
828         SpiHypertextClass.  Fixed a couple of paren-whitespace formatting bugs.
829
830         * libspi/hypertext.h: 
831         Removed pointless and duplicate AtkObject pointer from
832         SpiHypertextClass.
833
834         * libspi/keystrokelistener.c:
835         Fixed incorrect type of keystroke_listener_parent_class,
836         renamed keystroke_listener_object_finalize to
837         spi_keystroke_listener_object_finalize.
838         Fixed typo in signal declaration
839         (spi_keystroke_listener_class_init).
840
841         * libspi/registry.c:
842         Added funcsions spi_listener_struct_new() and
843         spi_listener_struct_free() to help with memory management issues.
844         We also now use these methods instead of gnew + poking stuff into
845         the struct, and to decrement listener counts/free the listeners
846         when deregistering them.
847         Fix more refcount bugs in getDesktop() and
848         getDeviceEventController().  
849
850         * test/simple-at.c:
851         De-ref the desktop after enumerating the applications.  Explicitly
852         decrement the refcounts on the created listeners on exit (using
853         _unref for keystroke listeners, and via the
854         deregisterGlobalEventListenerAll command for other event
855         listeners).
856         
857 2001-11-27  Michael Meeks  <michael@ximian.com>
858
859         * cspi/spi-listener.h: fixup enum.
860
861 2001-11-27  Michael Meeks  <michael@ximian.com>
862
863         * cspi/spi-listener-impl.c (cspi_event_listener_new),
864         (cspi_keystroke_listener_new): Use the cspi variants.
865
866 2001-11-26  Michael Meeks  <michael@ximian.com>
867
868         * test/keysynth-demo.c: fix 2 compile warnings, missing
869         type in decl. etc.
870
871         * test/simple-at.c (report_focussed_accessible),
872         (report_focus_event, report_button_press),
873         (check_property_change, is_command_key),
874         (report_ordinary_key_event, report_command_key_event): upd.
875
876         * util/mag_client.h: include pre-requisites.
877
878         * libspi/accessibleeventlistener.c
879         (spi_event_listener_object_finalize): free any lingering
880         callbacks.
881         
882         * libspi/keystrokelistener.c
883         (keystroke_listener_object_finalize): ditto.
884
885         * cspi/spi-listener-impl.[ch]: Add to implement cspi style
886         callbacks, with cspi types.
887         
888         * cspi/spi_event.c (createAccessibleEventListener): chain to
889         (AccessibleEventListener_addCallback): here.
890         (createAccessibleKeystrokeListener): chain to 
891         (AccessibleKeystrokeListener_addCallback): here.
892
893         * libspi/keystrokelistener.c
894         (spi_keystroke_listener_class_init): add signal.
895         (impl_key_event): emit the event.
896         (boolean_handled_accumulator): impl.
897         (marshal_BOOLEAN__POINTER): add, gack.
898
899         * libspi/accessibleeventlistener.c
900         (spi_event_listener_class_init): add signal.
901         (impl_accessible_event_notify_event): emit the signal &
902         make the loop efficient.
903         (spi_event_listener_add_callback): prepend the callback.
904
905         * libspi/accessibleeventlistener.h: add an 'event' signal,
906         decl type on callback.
907
908         * libspi/keystrokelistener.h: ditto.
909
910         * cspi/spi-listener.h: make methods typesafe and
911         make them use the new event typedefs.
912
913         * test/simple-at.c (report_focussed_accessible):
914         include mag_client.h
915         Use *(void *)text_interface not the other thing.
916         
917         * configure.in: add gtk to registryd bits - since we use
918         gdk there ( why ? )
919
920         * util/magnifier.c: include libbonobo.h
921         
922 2001-11-25  Bill Haneman  <bill.haneman@sun.com>
923
924         * test/keysynth-demo.c:
925         Turned this into a simple scanning keyboard, to demonstrate the
926         use of g_timeout_add () as a means of creating timers for
927         scanning, and the use of GtkStyle for visually indicating when
928         virtual keyboard elements are selected.
929
930         keysynth-demo now listens to any keyboard keys with zero-valued
931         keycodes (i.e. 'unused' keys) and interprets them as
932         single-switches.
933
934         Reworked the shiftlatch code so that shift-down state isn't held
935         for long periods (it's only synthesized immediately prior to
936         the keysynth event it's modifying).  Note that shiftlatch in this
937         demo is a convenience, not intended to take the place of AccessX 
938         which is the better choice for getting 'sticky' modifier keys.
939
940         * libspi/deviceeventcontroller.c:
941         * at-bridge/bridge.c:
942         * cspi/spi_registry.c:
943         Removed some debug print stuff, and put other verbosity in #ifdef
944         blocks.
945
946         * util/magnifier.c:
947         * util/mag_image.h:
948         Implemented some more of the magnifier IDL for the simple
949         magnifier: namely, getZoomRegionParams. 
950         Added mag_x and mag_y members to MagnifierData struct, aid of this
951         implementation.
952         Added GtkWindow::realize signal handler to magnifier, to keep it
953         from receiving keyboard focus from the WM.
954
955 2001-11-23  Mark McLoughlin  <mark@skynet.ie>
956
957         * cspi/spi-private.h: my guess at what michael forgot
958         before he ran off to NZ :-)
959
960 2001-11-23  Michael Meeks  <michael@ximian.com>
961
962         * cspi/spi_event.c (AccessibleEventListener_removeCallback):
963         comment out non existant method invoke so we link.
964
965         * cspi/spi-util.c (spi_warn_ev): conform to gtk+ style,
966         use bonobo_exception_get_text for more friendly warnings.
967
968         * cspi/spi.c (Obj_Add): move into spi_main & rename
969         spi_object_add; kill spi.c
970
971         * cspi/spi_registry.c
972         (deregisterGlobalEventListener),
973         (deregisterGlobalEventListenerAll),
974         (registerGlobalEventListener): fix exception leaks.
975
976         * cspi/spi_main.c (spi_exception): impl. helper, so we
977         don't leak exceptions.
978
979         * cspi/spi_selection.c
980         (AccessibleSelection_deselectSelectedChild): return the
981         success state.
982
983         * cspi/spi_main.c (spi_ev): impl; hack - gack.
984         (spi_registry): ditto.
985         (SPI_init): guard against double inits.
986
987         * cspi/*.c: use spi_ev (), and spi_registry () where
988         appropriate - a temporary hack until we have something
989         better. Use spi_object_add
990
991 2001-11-22  Michael Meeks  <michael@ximian.com>
992
993         * cspi/Makefile.am: re organise, install the headers.
994
995         * cspi/*.h: add G_BEGIN/END_DECLS
996
997 2001-22-11  Bill Haneman  <bill.haneman@sun.com>
998
999         * test/simple-at.c:
1000         Added non-preemptive keylistener for key events with no modifiers
1001         and shift-only modifier.
1002
1003         * libspi/keystrokelistener.c:
1004         Removed some verbose diagnostics printout.
1005
1006         * cspi/spi_registry.c:
1007         Fixed a bug that caused all key listeners to be registered as
1008         pre-emptive.
1009         
1010         * libspi/deviceeventcontroller.c:
1011         Fixed bug that caused XGrabKey (preemptive key grab) to be called
1012         for non-preemptive key masks.
1013
1014
1015 2001-22-11  Bill Haneman  <bill.haneman@sun.com>
1016
1017         * docs/reference/idl/at-spi-idl-docs.sgml:
1018         * docs/reference/idl/at-spi-idl-sections.txt:
1019         * docs/reference/idl/at-spi-idl-overrides.txt:
1020         Added missing files.
1021
1022         * docs/reference/Makefile.am:
1023         removed idl from SUBDIRS until we can figure a way to get gtk-doc
1024         to scan the IDL files :-(
1025
1026         * docs/reference:
1027         * docs/cspi:
1028         * docs/idl:
1029         Added .cvsignore files.
1030         
1031 2001-21-11  Bill Haneman  <bill.haneman@sun.com>
1032
1033         * libspi/deviceeventcontroller.c:
1034         * libspi/keystrokelistener.c:
1035         * cspi/spi_event.c:
1036         * cspi/spi_registry.c:
1037         Added filters for KeySets, KeyEventSeq, and event types to key
1038         event dispatching, so listeners should only receive those events
1039         that they requested :-)
1040
1041 2001-21-11  Bill Haneman  <bill.haneman@sun.com>
1042
1043         * configure.in:
1044         * docs/Makefile.am:
1045         * docs/reference:
1046         * docs/reference:Makefile.am:
1047         * docs/reference/cspi:
1048         * docs/reference/cspi:Makefile.am:
1049         * docs/reference/cspi:tmpl:
1050         * docs/reference/cspi:tmpl:*.sgml:
1051         * docs/reference/idl:
1052         * docs/reference/idl:Makefile.am:
1053         * docs/reference/idl:at-spi-idl-sections.txt:
1054         * docs/reference/idl:at-spi-idl-docs.sgml:
1055         * docs/reference/idl:tmpl:
1056         * docs/reference/idl:tmpl:*.sgml:
1057
1058         Restructured docs directory to allow separate 'reference' docs
1059         section, and forked idl and cspi docs.  Added the sgml template
1060         files to CVS.  Added the first sections/structural sgml for the
1061         IDL docs.
1062
1063 2001-11-21  Laszlo Peter  <laca@ireland.sun.com>
1064
1065         * configure.in, libspi/Makefile.am: find libXtst.
1066
1067 2001-11-21  Michael Meeks  <michael@ximian.com>
1068
1069         * test/accessx-gui.c: s/spi_value/value/ - doh.
1070
1071         * libspi/base.[ch]: add.
1072
1073 2001-18-11  Bill Haneman <bill.haneman@sun.com>
1074
1075         * idl/Accessible.idl:
1076         * idl/Application.idl:
1077         * idl/Registry.idl:
1078         * idl/Action.idl:
1079         Started gtk-doc cleanup on IDL.
1080
1081         * libspi/deviceeventcontroller.c:
1082         Added and connected non-preemptive key notification from the
1083         toolkits (in addition to the pre-emptive support from XServer
1084         which we had before, but which causes 'focus flashing').  Filters
1085         are presently limited to key modifiers and global/non-global,
1086         KeySets are presently ignored, as are KeyEvent masks.
1087
1088         Fixed naughtiness in dec_key_listener_new(), we copy the CORBA
1089         structs into the persistant structure rather than just storing
1090         pointers to things that might not persist across servant
1091         invocations.
1092
1093         The XGrabKey call now does async keygrabs, because synchronous
1094         ones were deadlocking with GDK_event code in a very nasty way.
1095
1096         Added boolean to internal method notify_keylisteners, to indicate
1097         whether the event came from the 'toolkit source' or the 'global
1098         (XServer) source' - this is used in the notification process to
1099         determine which listeners to send the event to.
1100
1101         deviceeventcontroller.c is now warning-free.
1102         
1103         * libspi/registry.c:
1104         Fixed regression in application de-registration.
1105         Also fixed some really brain-dead weirdness having to do with
1106         event dispatching - event structs are now duplicated before being
1107         re-marshalled in the dispatch to listeners.  This also fixes a
1108         Solaris build problem.
1109         
1110         
1111 2001-20-11  Michael Meeks  <michael@ximian.com>
1112
1113         * libspi/registry.c
1114         (impl_accessibility_registry_deregister_global_event_listener): 
1115         segv. protection.
1116
1117         * libspi/deviceeventcontroller.c
1118         (spi_device_event_controller_check_key_event): return
1119         FALSE on no virtual method.
1120
1121         * libspi/*..h: make includes work on a correctly pathed install.
1122
1123         * libspi/*.h: include glib/gmacros.h, use G_BEGIN / END _DECLS.
1124
1125         * libspi/application.h: kill unused ( and whacked out )
1126         gboolean *spi_application_set_id (AtkObject *app, long id);
1127
1128 2001-20-11  Michael Meeks  <michael@ximian.com>
1129
1130         * libspi/*.[ch]: further convert to bonobo's type func
1131         macros, remove redundnant casts etc.
1132
1133         * libspi/text.c s/accessibility_text/spi_text/g,
1134         re-order to de-cruft.
1135
1136         * libspi/hypertext.c: re-order to kill a huge slew
1137         of redundant forward decls.
1138
1139         * libspi/relation.c: ditto.
1140
1141         * libspi/image.c: ditto.
1142
1143         * */.cvsignore: update
1144         
1145 2001-20-11  Michael Meeks  <michael@ximian.com>
1146
1147         * libspi/deviceeventcontroller.c
1148         (_controller_register_with_devices): use g_getenv,
1149         kill stdlib.h include.
1150
1151         * libspi/keystrokelistener.c
1152         (spi_keystroke_listener_get_type): kill
1153         (spi_keystroke_listener_class_init),
1154         (spi_keystroke_listener_init): rename to this.
1155
1156         * libspi/text.c (impl_getAttributes): fix warning / bug.
1157
1158         * libspi/*.[ch]: more headers, includes and over commenting.
1159         
1160 2001-20-11  Michael Meeks  <michael@ximian.com>
1161
1162         * libspi/*.[ch]: fixup headers, includes and over commenting.
1163
1164         * libspi/image.c (impl__get_imageDescription): const
1165         correctness warning fix. remove redundant casting.
1166
1167         * libspi/table.c (impl_getRowDescription): ditto.
1168         (impl_getColumnDescription): ditto.
1169
1170         * libspi/libspi.h: add.
1171
1172 2001-19-11  Michael Meeks  <michael@ximian.com>
1173
1174         * libspi/editabletext.c (impl_setAttributes): fix warnings.
1175
1176         * libspi/component.c (accessibility_component_get_type): 
1177         rename to (spi_component_get_type): and macroify.
1178         (accessibility_component_init): rename to
1179         (spi_component_init): this
1180         (accessibility_component_class_init): rename to
1181         (spi_component_class_init): this
1182
1183         * libspi/action.c (spi_action_get_type): kill, use the macro.
1184
1185         * libspi/deviceeventcontroller.c (_compare_listeners): re-order
1186         to avoid prototype.
1187
1188         * libspi/application.c (spi_application_object_event_listener),
1189         (impl_accessibility_application_register_object_event_listener):
1190         warning fixes / const understanding updates.
1191
1192         * libspi/accessible.c (impl_accessibility_accessible_get_relation_set):
1193         warning fixes.
1194
1195 2001-18-11  Bill Haneman <bill.haneman@sun.com>
1196
1197         * libspi/spi_accessible.c: Added docs and C bindings for
1198         AccessibleStateSet. (No implementations yet).  Documentation
1199         coverage for C bindings now 100%. Made docs for event listeners
1200         more explicit.
1201         
1202         * idl/Registry.idl:
1203         Added methods 
1204             boolean notifyListenersSync (in DeviceEventListener listener,
1205                                      in DeviceEvent event);
1206
1207             oneway void notifyListenersAsync (in DeviceEventListener listener,
1208                                           in DeviceEvent event);
1209
1210         Added DeviceEventListener and DeviceEvent structs (may deprecate
1211         KeyStroke and KeystrokeListener in favor of this generic
1212         event/listener framework for devices).
1213
1214         * libspi/deviceeventcontroller.c:
1215
1216         Changed some key listener code to take masks, etc., and paved the
1217         way for integration of toolkit/non-preemptive key events. Changed
1218         signatures of some internal methods.
1219
1220         * at-bridge/bridge.c:
1221         Fixed regression connecting to interface signals, apparently
1222         caused by GTK+ changes.
1223
1224         Added an internal bridge_state_listener to deal with
1225         property-change:accessible-state signals.
1226
1227         Changed the key_listeners GList to store structs (including masks,
1228         etc.) instead of just CORBA_Objects (required for full
1229         implementation of key listener API).
1230
1231         Connected the bridge to all currently supported Atk signals.
1232         Events now supported: 
1233             object:property-change
1234             object:property-change:accessible-name
1235             object:property-change:accessible-state
1236             object:property-change:accessible-description
1237             object:property-change:accessible-parent
1238             object:property-change:accessible-value
1239             object:property-change:accessible-role
1240             object:property-change:accessible-table-caption
1241             object:property-change:accessible-table-column-description
1242             object:property-change:accessible-table-column-header
1243             object:property-change:accessible-table-row-description
1244             object:property-change:accessible-table-row-header
1245             object:property-change:accessible-table-summary
1246             object:children-changed
1247             object:visible-data-changed
1248             object:selection-changed
1249             object:text-selection-changed
1250             object:text-changed
1251             object:text-caret-moved
1252             object:row-inserted
1253             object:row-reordered
1254             object:row-deleted
1255             object:column-inserted
1256             object:column-reordered
1257             object:column-deleted
1258             object:model-changed        
1259
1260 2001-16-11  Bill Haneman <bill.haneman@sun.com>
1261
1262         * libspi/hyperlink.c,h:
1263         Fixed some broken stuff in hyperlink.
1264         
1265         * libspi/relation.h:
1266         * libspi/relation.c:
1267         * cspi/spi_accessible.c:
1268         Initial implementations of AccessibleRelation methods, and docs.
1269
1270         * libspi/accessible.c:
1271         Fixed a bug that caused SEGV  if an accessible
1272         object's description is NULL, and a client
1273         requests it.  An empty string is now returned.
1274
1275         * cspi/spi_editabletext.c:
1276         * cspi/spi_hypertext.c:
1277         * cspi/spi_image.c:
1278         * cspi/spi_hyperlink.c:
1279         * cspi/spi_table.c:
1280         Added docs.  
1281
1282         Doc coverage now 95%.
1283
1284 2001-16-11  Bill Haneman <bill.haneman@sun.com>
1285
1286         One last namespacing revision:
1287         * libspi/accessibleeventlistener.[ch]:
1288         Renamed SpiAccessibleEventListener to SpiEventListener,
1289         (no need for two namespaces ;-)
1290
1291         And lots of documentation fixes:
1292
1293         * docs/at-spi-docs.sgml:
1294         Fixed 'underscore vs. hyphen' bug that was preventing
1295         the gtk-doc API docs from being automatically generated.
1296
1297         * cspi/spi-impl.h
1298         * cspi/spi-listener.h
1299         * cspi/spi.h
1300         * cspi/spi_accessible.c
1301         * cspi/spi_action.c
1302         * cspi/spi_application.c
1303         * cspi/spi_component.c
1304         * cspi/spi_editabletext.c
1305         * cspi/spi_event.c
1306         * cspi/spi_hypertext.c
1307         * cspi/spi_main.c
1308         * cspi/spi_registry.c
1309         * cspi/spi_selection.c
1310         * cspi/spi_text.c
1311         * cspi/spi_value.c
1312         * docs/Makefile.am
1313         * docs/at-spi-docs.sgml
1314         * docs/at-spi-sections.txt
1315         
1316         Added and fixed up gtk-doc documentation in cspi.
1317         
1318         Interfaces now (fully) documented (subject to revision and enhancement):
1319         SPI_main
1320         Event Listener Support
1321         Registry API
1322         AccessibleApplication
1323         Accessible
1324         AccessibleAction
1325         AccessibleComponent
1326         AccessibleEditableText
1327         AccessibleSelection
1328         AccessibleText
1329         AccessibleValue
1330
1331         still pending:
1332         AccessibleStateSet
1333         AccessibleRelationSet
1334         AccessibleImage
1335         AccessibleTable
1336         AccessibleHyperlink
1337         
1338 2001-14-11  Bill Haneman <bill.haneman@sun.com>
1339
1340         * at-bridge/bridge.c:
1341         Initial work for toolkit-level key snooper connection by bridge.
1342
1343         * cspi/spi-impl.h:
1344         * cspi/spi_*.h:
1345         * cspi/spi_*.c:
1346         New typedefs and fixes to support new namespacing, and cleaner
1347         separation of cspi bindings from libspi bonobo implementation.  
1348         Removed inconsistent and extraneous Spi* namespace prefix that
1349         had crept into cspi headers.
1350         Lots of comment fixes that sed had missed.
1351
1352         * cspi/spi-roletypes.h:
1353         * cspi/spi-statetypes.h:
1354         Added SPI_ prefix to Role and State typedefs, and changed all-caps ROLE type
1355         to AccessibleRoleType.
1356         
1357         * libspi/accessibleeventlistener.h:
1358         Fixed minor namespacing weirdness.
1359
1360         * libspi/deviceeventcontroller.c:
1361         Reordered some internal API for device listeners.
1362         Changed the key registry final boolean to 'is_system_global'
1363         rather than 'is_synchronous', which is more descriptive of its 
1364         actual meaning.
1365         Added spi_device_event_controller_new().
1366         Added  SpiRegistry backpointer to SpiDeviceEventControllerClass.
1367          
1368         * libspi/keystrokelistener.[ch]:
1369         Namespaced KeystrokeListener to SpiKeystrokeListener.
1370         Changed uses of keymasks to use SPI_ prefix, and did other
1371         knock-on fixups.
1372
1373         * libspi/keymasks.h:
1374         Namespaced keymask constants with SPI_ prefix.
1375
1376         * libspi/registry.c:
1377         Some warning fixes, and knock-on fixes from namespace changes.
1378
1379         * test/Makefile.am:
1380         Added rules for accessx-gui test program.
1381
1382         * test/accessx-gui.c:
1383         Added a simple GUI program in GTK+-2.0 for the AccessX keyboard
1384         utility.  It doesn't actually use at-spi, but it's still cool and
1385         useful ;-)
1386
1387         * test/keysynth-demo.c:
1388         * test/simple-at.c:
1389         * test/at.c:
1390         * test/app.c:
1391         Fixes so that these test clients work properly with the namespaced
1392         libraries. (Incompletely tested for technical reasons, fixes may follow)
1393         
1394
1395 2001-13-11  Michael Meeks  <michael@ximian.com>
1396
1397         * libspi/application.c
1398         (impl_accessibility_application_get_version),
1399         (impl_accessibility_application_get_toolkit_name):
1400         warning fixes.
1401         (impl_accessibility_application_set_id),
1402         (impl_accessibility_application_get_id): remove
1403         redundant casting code.
1404
1405         * libspi/action.c (impl_getDescription): fix warnings.
1406
1407         * libspi/accessible.c
1408         (impl_accessibility_accessible_get_parent),
1409         (impl_accessibility_accessible_get_child_at_index),
1410         (impl_accessibility_accessible_get_state),
1411         (impl_accessibility_accessible_get_relation_set):
1412         warning fixes & include action.h
1413
1414 2001-13-11  Michael Meeks  <michael@ximian.com>
1415
1416         * *.[ch] fix bits I screwed up:
1417
1418                 s/([^ \tb(\*\&\?\",])spi_/\1/g;
1419                 s/([^ \tb(\*\&\?\",])Spi/\1/g;
1420         
1421 2001-13-11  Michael Meeks  <michael@ximian.com>
1422
1423         * *.[ch] Namespace libspi into spi_ and Spi.
1424
1425 2001-13-11  Michael Meeks  <michael@ximian.com>
1426
1427         * Makefile.am: dist & install at-spi-1.0.pc
1428
1429         * libspi/Makefile.am: install into at-spi-1.0
1430
1431         * idl/Makefile.am (idldir): install into at-spi-1.0
1432
1433         * at-spi-1.0.pc.in: add.
1434
1435         * configure.in: build it.
1436
1437 2001-12-11  Bill Haneman <bill.haneman@sun.com>
1438
1439         * test/keysynth-demo.c:
1440         Use a 'realize' signal-handler to set the WM properties for
1441         the virtual keyboard, rather than making it a "POPUP" type
1442         override-redirect window (thanks to anders carlsson for that
1443         tip!)
1444
1445 2001-11-11  Bill Haneman <bill.haneman@sun.com>
1446
1447         * test/Makefile.am:
1448         * test/keysynth-demo.c:
1449         Added new test of key synthesis, which creates a simple
1450         (mouse-operated) onscreen keyboard.  It inserts key events into
1451         the currently-focused window, thus it does not grab keyboard focus
1452         itself.
1453
1454         * cspi/spi_registry.c:
1455         Added C binding for AT-SPI generateKeyEvent.
1456
1457         * libspi/deviceeventcontroller.c:
1458         Added call to XFilterEvent so that key listener works with XIM (we
1459         hope).  Added event_synth_type to generateKeyEvent, so that we can
1460         produce KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE (pair), or
1461         synthesize a press/release pair for KeySyms.    
1462         
1463 2001-11-09  Bill Haneman <bill.haneman@sun.com>
1464
1465         * libspi/Makefile.am: 
1466         * registryd/Makefile.am:
1467         (temporary) hack to include libXtst in libspi and registryd.
1468         (Needed for keystroke synthesis, see below).
1469
1470         * idl/Registry.idl:
1471         Improved API for registerKeystrokeListener, in accordance with
1472         discussions with Gnopernicus team and X server research.
1473
1474         * libspi/registry.c:
1475         * libspi/deviceeventcontroller.c:
1476         * libspi/accessible.c:
1477         * libspi/keystrokelistener.c:
1478         Changes and fixes to support keylisteners for potentially
1479         consumed key events (that is, 'passive grabs').
1480         Added implementation for generateKeyEvent() [untested].
1481
1482         * cspi/spi.h:
1483         Changes to registerKeystrokeListener() API, as above.
1484         Added deregisterGlobalEventListenerAll(), and 
1485         deregisterKeystrokeListener(), which are needed for clean exit of
1486         clients.
1487         Added typedefs for KeyListenerSyncType, KeyEventMask, and KeySet,
1488         and a macro ALL_KEYS which may be used in place of a KeySet pointer.
1489         
1490         * cspi/spi_registry.c:
1491         Added implementations of function prototypes mentioned above.
1492         
1493         * registryd/registryd.c:
1494         Added the key listener event source as a g_timeout(), to allow
1495         receipt of key events that are not caught by GDK (since GDK
1496         doesn't support passive keygrabs, this was necessary).
1497
1498         * test/simple-at.c:
1499         Changed to attach a keylistener to 'Alt' keys, and
1500         respond to the following keycommands: Alt-M (toggle magnifier);
1501         Alt-F (toggle speech); Alt-Q (quit).
1502         Added an exit routine to deregister the listeners, and a key
1503         listener that prints some key info to the console when a key
1504         matches the listener mask (and is thus received by the listener).
1505         
1506         * util/idl/Magnifier.idl:
1507         Changes to magnifier API to support multiple zoom regions,
1508         non-uniform scaling in x and y, markDirty, and a host of other
1509         features that would be useful to magnification.
1510
1511         * util/mag_image.h:
1512         * util/mag_client.c:
1513         * util/mag_client.h:
1514         * util/mag_control.c:
1515         * util/magnifier.c:
1516         Source code changes to support the above IDL changes.
1517         
1518         * util/mag_image.c:
1519         As above, and also changes to use a (slower) generic conversion
1520         path for colormap conversions, since the fast RGB conversions have been
1521         reported to fail for 16-bit displays.
1522
1523 2001-10-26  Michael Meeks  <michael@ximian.com>
1524
1525         * libspi/Makefile.am (orbittypelibdir): install in orbit-2.0
1526
1527 <2001-10-26  Laszlo Peter <laca@ireland.sun.com>
1528
1529         * at-bridge/Makefile.am: fix LDFLAGS.
1530
1531 <2001-10-09  Bill Haneman <bill.haneman@sun.com>
1532
1533         * at-bridge/bridge.c:
1534         Re-worked listeners for toolkit events, now we have signal
1535         and property listeners. Added a private method
1536         register_atk_event_listeners(), which registers with the
1537         various atk and gtk signals we need to monitor in order to emit
1538         our at-spi events.
1539         Added emission hook for AtkObject:property-change events, to
1540         support the 'property listeners'.
1541         Fixed some alloc()s of Accessibility_Event structs to use CORBA
1542         allocation.
1543
1544         * cspi/spi-util.c: added methods spi_warn_ev and spi_check_ev,
1545         which emit warnings and exit, respectively, if CORBA errors occur
1546         during remote calls, and we now use these methods to check most of
1547         our CORBA calls in the C bindings.
1548
1549         * cspi/spi_accessible.c:
1550         Changed AccessibleSelection_refSelectedChild() to
1551         AccessibleSelection_getSelectedChild(), since all our cspi 'gets'
1552         now increment refcounts.
1553
1554         * cspi/spi_component.c:
1555         Fixed some long pointer casts (dangerous!) to pass pointers to
1556         CORBA_longs of the proper type to the CORBA stubs, and copy the
1557         data into the longs that were passed into the C bindings code.
1558         
1559         * at-bridge/bridge.c:
1560         
1561         * libspi/accessible.c:
1562         Removed ATK_IS_HYPERLINK() query, since AtkObjects are never
1563         hyperlinks, AtkHyperlink is an object type.     
1564
1565         * libspi/application.c:
1566         Added various conversions to and from "generic" event types and
1567         atk-specific types; this is really part of the 'bridge'
1568         implementation but is valid for all AtkObject-based accessibility 
1569         implementations.
1570
1571         * libspi/editabletext.c:
1572         Fixed nasty bug wherein editable text's finalize method was
1573         unref'ing tha AtkObject reference that the text parent class was
1574         about to unref _again_.  There was also a nasty inheritance bug
1575         that meant that the AccessibleEditableText class was corrupt.
1576
1577         * libspi/selection.c:
1578         Provided implementations for some selection API that was broken.
1579         
1580         * idl/Application.idl:
1581         Added registerObjectEventListener () method.
1582
1583         * THROUGHOUT:
1584         Fixed a number of return values that were Bonobo_Unknowns from
1585         bonobo_object_corba_objref(), which I
1586         forgot to dup before returning.  Changed instances of 
1587         bonobo_object_corba_objref (bonobo_object(o)) to
1588         BONOBO_OBJREF(o), for concision and clarity.
1589         
1590 <2001-10-13  Louise Miller <louise.miller@sun.com>
1591
1592         * idl/Accessible.idl, idl/Application.idl, idl/Desktop.idl,
1593         idl/Event.idl, idl/Registry.idl
1594         Changed these files to include Bonobo_Unknown.idl instead
1595         of Bonobo.idl
1596
1597 <2001-09-10  Marc Mulcahy <marc.mulcahy@sun.com
1598
1599         * libspi/component.c libspi/component.h:
1600                 Fixed typo.  Added assertions for object checks in 
1601         AccessibleComponent code.
1602
1603 <2001-10-09  Bill Haneman <bill.haneman@sun.com>
1604
1605         * idl/Accessible.idl:
1606                 Added 'isEqual (Accessible *object)' 
1607         method for Accessible. (Not Yet Implemented).
1608         
1609         * idl/Registry.idl:
1610                 Changed signature of registerKeystrokeListener() to
1611         take a KeySet and KeyEventSeq so that specific keys and event
1612         types could be requested for monitoring, and added a flag
1613         is_synchronous so that either synchronous or asynchronous
1614         notification could be requested.  (However this is not all
1615         implemented yet). This also meant adding two new typedefs,
1616         KeyEventSeq and KeySet.
1617
1618         * idl/Relation.idl: 
1619                 Added two new relations, RELATION_TOOLTIP_FOR and
1620         RELATION_LEAFNODE_OF.
1621
1622         * idl/State.idl:
1623                 Added new state, STATE_HAS_TOOLTIP.
1624         
1625         * libspi/text.c, editabletext.c:
1626                 Added new assertions to all casts of bonobo-objects from
1627         CORBA servants, to prevent Text API calls on non-text objects.
1628                 Changed suspect casts of int-pointer types, so that we
1629         always send a valid CORBA_long pointer to the CORBA APIs that use
1630         in/out long parameters.  We then have to copy from the CORBA_long
1631         into the regular long or int for return to the C bindings, or
1632         vice-versa when returning parameters from ATK calls to the bonobo wrappers.
1633         
1634         * cspi/spi_text.c:
1635         * libspi/deviceeventcontroller.c:
1636                 Cleaned these sources up.
1637         * idl/Text.idl:
1638                 Changed return type for getCharacterAtOffset to
1639         CORBA_unsigned_long, to allow for 32-bit characters.
1640         
1641                 
1642 <2001-10-08  Bill Haneman <bill.haneman@sun.com>
1643
1644         * util/Makefile.am:
1645         * idl/Makefile.am:
1646                 Fixed 'make dist' so that distro compiles...
1647         * libspi/keymasks.h:
1648                 new file.
1649         * cspi/spi-listener.c:
1650                 KeystrokeListenerCB now returns a boolean.
1651         * cspi/spi.h:
1652                 Added KeyEventType struct, and KeyStroke.
1653                 Also added createKeystrokeListener(),
1654         KeystrokeListener_addCallback(),
1655         KeystrokeListener_removeCallback(), and added a keymask to
1656         registerKeystrokeListener().
1657         * cspi/spi_accessible.c:
1658                 Changed numerous return types for interfaces from
1659         AccessibleComponent to Accessible<InterfaceName>; this was
1660         probably a cut-and-paste error.
1661         * cspi/spi_event.c:
1662                 Implementations of new KeystrokeListener api (from spi.h,
1663         above).
1664         * idl/Registry.idl:
1665                 Changes to key modifier mapping.
1666                 Created ControllerEventMask struct.
1667                 Made DeviceEventController derive from Bonobo::Unknown.
1668         * idl/Text.idl:
1669                 Removed TEXT_BOUNDARY_CURSOR_POS boundary type.
1670         * libspi/deviceeventcontroller.c:
1671                 Added a number of new internal (private) methods.
1672         * libspi/editabletext.c:
1673         * libspi/editabletext.h:
1674                 Fixed a number of bugs related to the fact that
1675         editabletext inherits from text.  Fixed the EditableText struct,
1676         the init() call, and use correct casts when calling Text methods
1677         from an EditableText object.  Removed (duplicate) atko from the
1678         EditableText structure, we use the one in the parent Text
1679         structure via the casts mentioned above.
1680         * libspi/keystrokelistener.[ch]:
1681         * libspi/registry.c:
1682                 Changes in support of keyboard handling (above).
1683         
1684         Keyboard handling, though partly functional, is still not
1685         recommended for at-spi client use as there is considerable 
1686         work yet to be done.
1687
1688         * libspi/text.c:
1689                 Changed some places where pointers to various int types
1690         are cast to be pointers to CORBA_long types and vice-versa:
1691         pointer casting is not safe so we pass pointers of the correct
1692         types and then cast the result before putting it into the target
1693         pointers.
1694
1695         * libspi/text.h: minor typos corrected.
1696         * test/simple-at.c: 
1697                 We now speak not only the name of a Text element, but the
1698         first sentence of its content, when it receives focus.
1699                 I also changed the text compression to 75% from 50%.
1700         * util/Accessibility_Util.server.in:
1701                 Changed the default magnifier type to be a 3x vertical
1702         splitscreen magnifier (was previously a 2x horizontal one).
1703
1704 <2001-10-03  Bill Haneman <bill.haneman@sun.com>
1705
1706         * libspi/keystrokelistener.h:
1707         * libspi/keystrokelistener.c:
1708                 Initial functional implementations of KeystrokeListener.
1709         * idl/Registry.idl:
1710         
1711 <2001-10-05  Marc Mulcahy <marc.mulcahy@sun.com>
1712
1713         Fixed string handling for NULL strings in libspi.
1714         Added spi_freeString to free strings returned by C bindings.
1715
1716 <2001-09-30  Bill Haneman <bill.haneman@sun.com>
1717
1718         * libspi/keystrokelistener.h:
1719         * libspi/keystrokelistener.c:
1720                 Began (no-op) implementations of KeystrokeListener
1721                         (see below).
1722         * libspi/deviceeventcontroller.c:
1723         * libspi/deviceeventcontroller.h:
1724                 Began creating implementations of DeviceEventController,
1725                         to handle keystroke and mouse event listening and
1726                         synthesis.
1727         * libspi/accessible.c:
1728                 Stubbed-in the implementations for
1729                         Accessibility_Accessible_getState and
1730                         Accessibility_Accessible_getRelationSet.
1731         * libspi/registry.c:
1732                 Improved de-registration process and fixed some bugs, 
1733                         deregistration now works correctly.
1734         * libspi/desktop.c:
1735                 Added initialization of applications list (to NULL).
1736         * util/magnifier.c:
1737                 Reduced speech compression from 0.5 to 0.7, for demo.
1738                 Changed call to gdk_window_set_decorations()
1739                         to gtk_window_set_decorated().
1740         * at-bridge/bridge.c:
1741                 Bridge now deregisters when app exits, via
1742                         registration of a cleanup function
1743                         with the g_atexit() call.
1744                         Required making 'app' static, renamed 'this_app'.
1745                 Fixed broken use of bonobo_init, passing argv wrongly.
1746
1747 <2001-09-27  Bill Haneman <bill.haneman@sun.com>
1748
1749         * util:
1750         * util/Makefile.am: 
1751                 Created a new directory for 
1752                         accessibility-related utilities, primarily for
1753                         testing and demo purposes, but with possible
1754                         end-user utility.
1755         
1756         * util/magnifier.c:
1757         * util/magnifier.h:
1758         * util/mag_image.c:
1759         * util/mag_image.h:
1760                 Onscreen magnifier utility that
1761                         is implemented as a bonobo service.
1762         
1763         * util/mag_client.c:
1764         * util/mag_client.h:
1765                 Client-side support (simple C bindings) 
1766                         for Magnification service
1767         
1768         * util/mag_control.c:
1769                 Client program example for 
1770                         Magnification service
1771         
1772         * util/Accessibility_Magnifier.server.in:
1773                 Bonobo-activation file for the 
1774                         Magnification service.
1775         
1776         * util/idl:
1777         * util/idl/Magnifier.idl:
1778                 IDL defining the bonobo Magnification
1779                         service interface.
1780
1781         * test/simple-at.c:
1782                 Modifications to use the bonobo-activated magnifier
1783                         above, in place of trying to connect to an existing
1784                         magnifier that uses socket-listening IPC.
1785
1786                 If env variable MAGNIFIER is set, a magnifier service
1787                         will be started if one does not exist.
1788         
1789 <2001-09-25  Bill Haneman <bill.haneman@sun.com>
1790         * at-bridge/bridge.c:
1791                 applied patch from Marc to build and run 
1792                 against new glib and gtk+ (seemed like a change 
1793                 to bonobo_init signature was made ?)
1794         * test/simple-at.c:
1795                 made festival-server support turned off by default.
1796                 Added support for a simple magnifier (off by default)
1797                 which will be added to a 'util' directory later.
1798         * at-bridge/Makefile.am:
1799                 Changed "application.h" header from a 'source'
1800                 to a 'dependency' of libat-bridge.
1801
1802 <2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
1803         * cspi/Makefile.am:
1804                 Added spi-util.c.
1805
1806         * cspi/spi-util.c:
1807                 Fixed typo
1808
1809         * cspi/spi.c:
1810                 Added interface implementation c files to list of
1811                         includes so they are included in libcspi.
1812
1813         * cspi/spi.h:
1814                 Changed prototype of AccessibleAction_doAction to return a
1815                         boolean.
1816                 Changed prototype of AccessibleTable_getCaption to
1817                         return an Accessible.
1818                 Changed prototype of AccessibleTable_getSelectedRows
1819                         and AccessibleTable_getSelectedColumns to
1820                         return a long (returns the number of selected rows
1821                         or columns respectively).
1822                 Changed name of AccessibleText_refRunAttributes to
1823                         AccessibleText_getAttributes.
1824                 Changed prototype of AccessibleText_getCharacterExtents to
1825                         return a void rather than a boolean. 
1826                 Added support for a AccessibleCoordType parameter
1827                         specifying what type of coordinates are desired.
1828                 Added an AccessibleCordType parameter to
1829                         AccessibleText_getPointAtOffset.
1830
1831         * cspi/spi_accessible.c:
1832                 Added code to return the outstanding interfaces from
1833                         Accessible_queryInterface.
1834
1835         * cspi/spi_action.c:
1836                 Fixed typos.
1837                 Corrected call to getNActions to call the c binding
1838                         for an attribute.
1839
1840         * cspi/spi_editabletext.c:
1841                 Fixed typos.
1842                 Changed name from setRunAttributes to setAttributes.
1843
1844         * cspi/spi_hyperlink.c:
1845                 Fixed typos.
1846                 Changed call to getNAnchors to correctly call the c
1847                         binding for an attribute.
1848
1849         * cspi/spi_hypertext.c:
1850                 Fixed typos.
1851                 Changed getImageDescription to correctly call the
1852                         binding for an attribute.
1853
1854         * cspi/spi_selection.c:
1855                 Changed getNSelectedChildren to correctly call the c
1856                         binding for the attribute.
1857                 Changed refSelectedChild to getSelectedChild.
1858
1859         * cspi/spi_table.c:
1860                 Fixed typos.
1861                 Changed getCaption to return an Accessible.
1862                 Fixed calls which retrieve attributes.
1863                 Changed refAt to getAccessibleAt.
1864                 Changed getNSelectedRows and getNSelectedColumns to
1865                         return longs.
1866
1867         * cspi/spi_text.c:
1868                 Changed getCharacterExtents and getPointAtOffset to accept an
1869                         AccessibleCoordType.
1870                 Fixed typos.
1871                 Changed calls which retrieve attributes.
1872                 Changed refRunAttributes to getAttributes.
1873
1874         * cspi/spi_value.c:
1875                 Fixed typos.
1876
1877         * idl/Hyperlink.idl:
1878                 Changed n_anchors attribute to nAnchors to keep naming
1879                         convention consistent.
1880
1881         * idl/Table.idl:
1882                 Made Table inherit from Bonobo::Unknown.
1883                 Added nSelectedColumns and nSelectedRows attributes.
1884
1885         * idl/Value.idl:
1886                 Made Value inherit from Bonobo::Unknown.
1887
1888         * libspi/hyperlink.c:
1889                 Change for nAnchors attributte name change.
1890
1891 <2001-09-12  Marc Mulcahy <marc.mulcahy@sun.com>
1892         * cspi/Makefile.am:
1893                 Added spi-util.c.
1894
1895         * cspi/spi-util.c:
1896                 Fixed typo
1897
1898         * cspi/spi.c:
1899                 Added interface implementation c files to list of
1900                         includes so they are included in libcspi.
1901
1902         * cspi/spi.h:
1903                 Changed prototype of AccessibleAction_doAction to return a
1904                         boolean.
1905                 Changed prototype of AccessibleTable_getCaption to
1906                         return an Accessible.
1907                 Changed prototype of AccessibleTable_getSelectedRows
1908                         and AccessibleTable_getSelectedColumns to
1909                         return a long (returns the number of selected rows
1910                         or columns respectively).
1911                 Changed name of AccessibleText_refRunAttributes to
1912                         AccessibleText_getAttributes.
1913                 Changed prototype of AccessibleText_getCharacterExtents to
1914                         return a void rather than a boolean. 
1915                 Added support for a AccessibleCoordType parameter
1916                         specifying what type of coordinates are desired.
1917                 Added an AccessibleCordType parameter to
1918                         AccessibleText_getPointAtOffset.
1919
1920         * cspi/spi_accessible.c:
1921                 Added code to return the outstanding interfaces from
1922                         Accessible_queryInterface.
1923
1924         * cspi/spi_action.c:
1925                 Fixed typos.
1926                 Corrected call to getNActions to call the c binding
1927                         for an attribute.
1928
1929         * cspi/spi_editabletext.c:
1930                 Fixed typos.
1931                 Changed name from setRunAttributes to setAttributes.
1932
1933         * cspi/spi_hyperlink.c:
1934                 Fixed typos.
1935                 Changed call to getNAnchors to correctly call the c
1936                         binding for an attribute.
1937
1938         * cspi/spi_hypertext.c:
1939                 Fixed typos.
1940                 Changed getImageDescription to correctly call the
1941                         binding for an attribute.
1942
1943         * cspi/spi_selection.c:
1944                 Changed getNSelectedChildren to correctly call the c
1945                         binding for the attribute.
1946                 Changed refSelectedChild to getSelectedChild.
1947
1948         * cspi/spi_table.c:
1949                 Fixed typos.
1950                 Changed getCaption to return an Accessible.
1951                 Fixed calls which retrieve attributes.
1952                 Changed refAt to getAccessibleAt.
1953                 Changed getNSelectedRows and getNSelectedColumns to
1954                         return longs.
1955
1956         * cspi/spi_text.c:
1957                 Changed getCharacterExtents and getPointAtOffset to accept an
1958                         AccessibleCoordType.
1959                 Fixed typos.
1960                 Changed calls which retrieve attributes.
1961                 Changed refRunAttributes to getAttributes.
1962
1963         * cspi/spi_value.c:
1964                 Fixed typos.
1965
1966         * idl/Hyperlink.idl:
1967                 Changed n_anchors attribute to nAnchors to keep naming
1968                         convention consistent.
1969
1970         * idl/Table.idl:
1971                 Made Table inherit from Bonobo::Unknown.
1972                 Added nSelectedColumns and nSelectedRows attributes.
1973
1974         * idl/Value.idl:
1975                 Made Value inherit from Bonobo::Unknown.
1976
1977         * libspi/hyperlink.c:
1978                 Change for nAnchors attributte name change.
1979
1980
1981 <2001-09-05  Marc Mulcahy <marc.mulcahy@sun.com>
1982
1983         implementations-- made server implementations own AtkObject pointers
1984         rather than their respective AtkInterrface pointers to fix
1985         refcounting.  AtkHyperlink is still broken.
1986
1987 <2001-09-04  Bill Haneman <bill.haneman@sun.com>
1988         * cspi/spi_accessible.c:
1989                 Added method Accessible_Role_getName(),
1990                         and requisite string array (role_names).
1991                 Added conversion string_from_corba_strin() call
1992                         to Accessible_getName and _getDescription.
1993         * libspi/accessible.c:
1994                 Added implementation for Accessible_getRole()
1995         * test/simple-at.c:
1996                 Added festival support, used if environment variable
1997                         FESTIVAL is set.
1998         
1999 2001-09-04  Bill Haneman <bill.haneman@sun.com>
2000
2001         * at-bridge/bridge.c:
2002             Now allocate Accessibility_Event using
2003             Accessibility_Event__alloc() instead of g_new0().
2004         * libspi/accessibleeventlistener.c:
2005             Initialize AccessibleEventListener->callbacks to NULL.
2006             Fixed accessible__event_listener_init() param, changed to
2007             "AccessibleEventListener *" type.
2008             Changed a bonobo_object_release_unref() call to
2009             Accessibility_Accessible_unref().
2010         * libspi/listener.c:
2011             Changed Bonobo_Unknown_unref to (equivalent) 
2012             Accessibility_Accessible_unref.
2013         * libspi/registry.c:
2014             Changed bonobo_object_release_unref to 
2015             Accessibility_Accessible_unref.
2016         
2017 <2001-09-04  Marc Mulcahy <marc.mulcahy@sun.com>
2018         
2019         * Added files:
2020             spi_action.c spi_editabletext.c spi_hyperlink.c spi_hypertext.c
2021             spi_image.c spi_selection.c spi_table.c spi_text.c spi_value.c
2022             spi-util.c spi-util.h
2023             Implementations for C bindings to remaining accessibility 
2024             interfaces.
2025
2026 <2001-09-04 Marc Mulcahy <marc.mulcahy@sun.com>
2027         
2028         * idl/Action.idl:
2029             changed return value of Action from void to boolean to 
2030             bring in line with ATK.
2031
2032         * idl/Text.idl:
2033             Changed getText funcions to return "out" start and end offsets.
2034             Changed getAttributes to take and offset and return the start 
2035             and end offset of the attribute run.
2036             Changed getOffsetAtPoint and getCharacterExtents to take an 
2037              enum describing whether coordinates are window or screen.
2038
2039         * Added files:
2040             libspi/action.c libspi/action.h libspi/editabletext.c 
2041             libspi/editabletext.h libspi/hyperlink.c libspi/hyperlink.h
2042             libspi/hypertext.c libspi/hypertext.h libspi/image.c 
2043             libspi/image.h libspi/selection.c libspi/selection.h
2044             libspi/table.c libspi/table.h libspi/text.c libspi/text.h 
2045             libspi/value.c libspi/value.h
2046             Added server implementations for outstanding ATK interfaces 
2047             not yet implemented.
2048  
2049 2001-09-04  Bill Haneman <bill.haneman@sun.com>
2050
2051         * idl/Action.idl:
2052                 Added (missing) getName() method. 
2053                 Made nActions an attribute.
2054         * idl/EditableText.idl:
2055                 Changed order of params in setAttributes.
2056         * idl/Hyperlink.idl:
2057                 Removed getAnchor, added getURI.
2058         * idl/Image.idl:
2059                 Changed attributes to methods, for efficiency
2060                 (so that getting extents can be done in one call)
2061         * idl/Selection.idl:
2062                 Changed nSelectedChildren to attribute, and re-indented.
2063         * idl/Table.idl: changed nrows, ncolumns, caption, summary 
2064                 to attributes.
2065         * idl/Text.idl: reformatted to match our coding style.
2066                 (temporarily?) removed getRowColumnAtOffset().
2067                 Changed text selection API to support multi-select and
2068                 non-contiguous selections, as in ATK.
2069         * idl/Value.idl: changed some methods to attributes.
2070
2071 2001-08-24  Mark McLoughlin <mark@skynet.ie>
2072
2073         * libspi/listener.c(impl_notify_event):
2074         BonoboUnkown_unref the source instead
2075         of bonobo_object_release_unref - the ORB
2076         handles the releasing.
2077
2078         * configure.in: require ORBit-2.3.94 for
2079         this behaviour.
2080
2081 2001-08-21  Bill Haneman <bill.haneman@sun.com>
2082
2083         Tagged CVS repository 'EA_1_0'.
2084         * README.EARLY_ACCESS:
2085         Alphabetized acknowledgements list, and
2086         added someone.
2087         Listed some known dependencies of at-spi.
2088
2089 2001-08-20  Bill Haneman <bill.haneman@sun.com>
2090
2091         * docs/at-spi-docs.sgml:
2092         * docs/at-spi-sections.txt:
2093         * docs/at-spi-overrides.txt: (Added zero-length file)
2094         Documentation improvements - gtk-doc should build
2095         docs for all implemented C bindings now.
2096         * cspi/Makefile.am:
2097         * cspi/spi_main.c:
2098         * cspi/spi.c: (New file)
2099         * cspi/spi_event.c: (New file)
2100         * cspi/spi_registry.c: (New file)
2101         * cspi/spi_accessible.c: (New file)
2102         * cspi/spi_application.c: (New file)
2103         * cspi/spi_component.c: (New file)
2104         Split spi_main.c into six parts, and included them from
2105         "spi.c".  This is a bit of a hack, probably temporary,
2106         but required by gtk-doc, apparently.
2107         
2108 2001-08-20  Bill Haneman <bill.haneman@sun.com>
2109
2110         * docs/Makefile.am:
2111         * docs/at-spi-docs.sgml:
2112         * docs/at-spi-sections.txt:
2113         * configure.in:
2114         Initial checkins/modifications for gtk-doc generation.
2115         * cspi/spi.h:
2116         * cspi/spi.c:
2117         Added (missing) interface query methods to Accessible's C binding.
2118         * cspi/spi-impl.h:
2119         Added GenericInterface type definition.
2120         * test/simple-at.c:
2121         Added query for AccessibleComponent interface to focus event handler.
2122         Added printout of bounding box for focussed component.
2123         * libspi/component.c:
2124         Added partial implementation for AccessibleComponent to C binding.
2125         * idl/Application.idl:
2126         * libspi/registry.c:
2127         * libspi/listener.c:
2128         * libspi/application.c:
2129         * libspi/application.h:
2130         Changed "ID" attribute type from string to long.
2131
2132 2001-08-19  Bill Haneman <bill.haneman@sun.com>
2133
2134         * cspi/spi.h:
2135         * cspi/spi.c:
2136         Made method naming consistent: methods taking object args
2137         start with uppercase, other methods (except those using
2138         acronyms) start with lowercase.  Underscores delimit between
2139         object names and method names:
2140         SPI_init() - uppercase since it starts with an acronym.
2141         getDesktopCount () - lowercase start since no object param0.
2142         Accessible_getName() - uppercase object type name, studlyCaps method
2143                                name.
2144
2145         *cspi/spi.h:
2146         Added gtk-doc documentation for all currently implemented
2147         methods in the C bindings API.
2148
2149 2001-08-18  Bill Haneman <bill.haneman@sun.com>
2150
2151         * Makefile.am : changed build order to build test last.
2152         * cspi/spi.h :
2153         * cspi/spi_main.c :
2154         Changed "createEventListener" to "CreateEventListener".
2155         * libspi/accessibleeventlistener.c :
2156         Bugfix for addition of callbacks.
2157         * test/Makefile.am :
2158         * test/simple-at.c :
2159         Added new test that uses the C bindings API.
2160         * idl/Event.idl :
2161         * libspi/listener.c :
2162         * libspi/registry.c :
2163         * libspi/accessibleeventlistener.c :
2164         * at-bridge/bridge.c :
2165         Renamed member "target" of Accessibility_Event to "source",
2166         which is more descriptive.
2167         
2168
2169 2001-08-18  Bill Haneman <bill.haneman@sun.com>
2170
2171         * Makefile.am: 
2172         * configure.in :
2173         * cspi/Makefile.am :
2174         Added makefile support for at-spi/cspi directory.
2175         * cspi/spi.h : 
2176         * cspi/spi-impl.h :
2177         * cspi/spi-listener.h : (NEW FILE)
2178         Added support for/use of spi-listener.h.
2179         * cspi/spi_main.c :
2180         C bindings now build successfully, with no warnings.
2181         * libspi/accessibleeventlistener.h : (NEW FILE)
2182         * libspi/accessibleeventlistener.c : (NEW FILE)
2183         * libspi/Makefile.am :
2184         Added new object type "AccessibleEventListener"
2185         which inherits from Listener, and allows attachment
2186         of in-process callbacks (so that a client with a listening
2187         object instance can add functionality to the local 
2188         implementation, dynamically).
2189
2190 2001-08-18  Bill Haneman <bill.haneman@sun.com>
2191
2192         * libspi/accessible.c: 
2193         Add implementation for get_index_in_parent().
2194         * cspi/spi.h : 
2195         Added #include of "spi-roletypes.h", and
2196         added enumerated type AccessibleCoordType.
2197         Added definition for KeystrokeListener (function type).
2198
2199         ADDED FILES:
2200         * cspi/spi-statetypes.h :
2201         * cspi/spi-roletypes.h :
2202         * cspi/spi-impl.h :
2203         Added these headers, used by spi.h.
2204         * cspi/spi_main.c : 
2205         Added code (NOTE: not yet built by make).
2206
2207 2001-08-18  Mark McLoughlin <mark@skynet.ie>
2208
2209         * libspi/Makefile.am: generate imodule
2210         at the same time as other idl compiler 
2211         generated files. 
2212
2213 2001-08-17  Bill Haneman <bill.haneman@sun.com>
2214         * libspi/registry.c :
2215         * libspi/application.c :
2216         * idl/Application.idl :
2217         Made registration with toolkit an application method,
2218         which is required since each app has its own toolkit static
2219         environment.  Thus the bridge must register for 
2220         notification of toolkit events from each application in turn.
2221         Toolkit notifications are now successfully registered for, and
2222         sent to the listening at client.
2223         * test/at.c :
2224         Changed toolkit event string to use hyphens rather than underscores.
2225         * libspi/listener.c :
2226         listner now gives more info in debug mode - it reports the
2227         name of the event received, as well as the name of the source.
2228         
2229
2230 2001-08-16  Bill Haneman <bill.haneman@sun.com>
2231
2232         * libspi/registry.c :
2233         added more implementation for toolkit events.
2234         Fixed bug such that toolkit event registrations
2235         (via atk) use the whole event name string, not 
2236         just minor+detail.
2237         Removed a useless call to an ORBit_ method.
2238         * at-bridge/bridge.c :
2239         Removed unused local sbuf[] variable.
2240         * test/at.c :
2241         We now register for Gtk:GtkWidget:button_press_event 
2242         events as well as "focus:" events.
2243         * cspi/spi.h :
2244         Add some more API from Registry.idl that was missing,
2245         for keystroke listening, keystroke and mouse event
2246         synthesis, and enumeration of accessible desktops.
2247
2248 2001-08-16  Michael Meeks  <michael@ximian.com>
2249
2250         * configure.in: use AM_GLIB_GNU_GETTEXT.
2251
2252         * Makefile.am (SUBDIRS): kill intl.
2253
2254 2001-08-15  Michael Meeks  <michael@ximian.com>
2255
2256         * registryd/Makefile.am: s/oaf/server/ relocate info file.
2257
2258         * configure.in: upd.
2259
2260         * configure.in: depend on a recent bonobo-activation that
2261         will find our server files ...
2262
2263 2001-08-16  Bill Haneman <bill.haneman@sun.com>
2264
2265         * libspi/accessible.c : accessible_new() :
2266         Now we add the Component interface via bonobo_object_add_interface,
2267         if the contained AtkObject implements AtkComponent.
2268         * libspi/accessible.h : now include "component.h"
2269         * libspi/component.h :
2270         * libspi/component.c : added files - implementation of
2271         bonobo wrapper object for Accessibility/Component
2272         * libspi/listener.c :
2273         Added test code to check for Accessibility/Component:1.0
2274         interface and report whether it is implemented by the
2275         event source.
2276         * libspi/registry.c :
2277         Now we check for not only the hash of the whole event 
2278         string before relaying the event, we also check the
2279         "minor" event string (without the detail string).
2280         This allows event listeners to be registered against
2281         all events of a certain major+minor type, or just
2282         against a specific major+minor+detail type.
2283         * libspi/accessible.c :
2284         Added implementations for Accessible:get_parent(),
2285         Accessible:getChildCount(), and Accessible:getChildAtIndex().
2286         * libspi/registry.c :
2287         * libspi/listener.c :
2288         Replaced calls to Accessibility_Accessible_ref() and
2289         Accessibility_Accessible_unref() with 
2290         calls to bonobo_object_dup_ref() and 
2291         bonobo_object_release_unref(), so that the CORBA object
2292         is dup-ed and released when relayed, as well as the bonobo object.
2293
2294 2001-08-15  Mark McLoughlin <mark@skynet.ie>
2295
2296         * libspi/Makefile.am,
2297           registryd/Makefile.am,
2298           at-bridge/Makefile.am.
2299           test/Makefile.am, configure.in:
2300         reverse previous changes.
2301
2302         * /idl/Image.idl: fix typo.
2303
2304         * test/Makefile.am: put DEBUG_FLAGS
2305         in CFLAGS.
2306
2307 2001-08-15  Mark McLoughlin <mark@skynet.ie>
2308
2309         * test/app.c: use argv[0] instead of
2310         g_type_prgname.
2311
2312 2001-08-15  Mark McLoughlin <mark@skynet.ie>
2313
2314         * libspi/Makefile.am,
2315           registryd/Makefile.am,
2316           at-bridge/Makefile.am.
2317           test/Makefile.am, configure.in:
2318         cleanup, replace individual LIBS/CFLAGS with
2319         AT_COMMON_{LIBS|CFLAGS}.
2320
2321         * README: format.
2322
2323 2001-08-15  Mark McLoughlin <mark@skynet.ie>
2324         
2325         * configure.in, libspi/Makefile.am:
2326         Change IDL path checking for bonobo-activation
2327         as opposed to oaf.
2328
2329 2001-08-15  Bill Haneman <bill.haneman@sun.com>
2330
2331         * registryd/registry.c : separated event listeners to use
2332         3 separate lists (focus, window, toolkit).  Began testing
2333         event names against hashes before relaying events.
2334         * test/at.c : now register for events of type "focus:"
2335         * test/app.c : now generate events of type "focus:"
2336         * at-bridge/bridge.c : register with ATK for focus events,
2337         and we now relay those focus events to any "focus:" listeners.
2338         This now works with the bridge as a GTK_MODULE when running test/at.
2339         * libspi/registry.c :
2340         * libspi/listener.c : 
2341         now we ref event sources before propagating, and unref on receipt.
2342         * libspi/registry.c : 
2343         some changes to internal structs, to support event typestring hashes.
2344         * text/app.c : changed the way the appname is generated.
2345         * cspi : added directory that will hold the C bindings library for 
2346                 non-CORBA/bonobo-savvy clients.
2347         * cspi/spi.h : header file that contains the function prototypes for the C binding.
2348         * idl/Component.idl : added in parameter to indicate coord system for
2349                 geometry-related calls.
2350         * idl/Hyperlink.idl : added readonly n_links attribute
2351         * idl/Image.idl : changed methods to attributes.
2352         
2353 2001-08-15  Mark McLoughlin <mark@skynet.ie>
2354
2355         * at-bridge/Makefile.am: link against
2356         ../libspi/libspi.la instead of -lspi.
2357
2358         * at-spi/test/app.c: include 
2359         bonobo-activation.h. Use a default appname
2360         if one is not provided.
2361
2362 2001-08-14  Bill Haneman <bill.haneman@sun.com>
2363
2364         * idl/Registry.idl : temporarily changed register_Application
2365         to oneway, to work around issue with initial registration 
2366         re-entrancy.
2367         * idl/Application.idl : changed attribute "id" from readonly 
2368         to read-write, since it needs to be assigned by Registry.
2369         * registryd/registryd.c : added call to set application id 
2370         on registration.
2371         * registryd/registry.c : changed de-registration procedure to
2372         use CORBA_Object_hash() to find matching object ref in application
2373         lists and listener lists.
2374         * registryd/registry.c : defined EventTypeStruct and EventTypeMajor,
2375         began distinguishing between event types (work in progress).
2376
2377 2001-08-13  Bill Haneman <bill.haneman@sun.com>
2378
2379         CHANGES:
2380         * libspi/application.c:
2381         Added implementations for get/set id, get_toolkitName,
2382         get_version.
2383         * registryd/registryd.c :
2384         * test/at.c :
2385         * test/app.c :
2386         * Makefile.am :
2387         Converted from use of OAF to bonobo-activation.
2388         * libspi/desktop.h :
2389         * libspi/desktop.c :
2390         * test/app.c :
2391         Removed references to atksimpleobject, since base atkobject
2392         implementation now provides functionality we need.
2393         * libspi/atksimpleobject.c :
2394         * libspi/atksimpleobject.h :
2395         Removed.
2396         
2397         ADDITIONS:
2398         * at-bridge
2399         * at-bridge/Makefile.am
2400         * at-bridge/bridge.c
2401         * configure.in
2402         * Makefile.am
2403         Added directory "bridge" and contents, and added dependencies
2404         in Makefile.am/configure.in.  
2405         Initial checkin of "at-bridge".
2406         This code is a GTK_MODULE which automatically registers
2407         GTK+ apps with the accessibility registry, using an object
2408         reference to the root ATK object.
2409         
2410 2001-08-10  Mark McLoughlin <mark@skynet.ie>
2411
2412         * po/Makefile.in.in: Remove. Again. If this
2413         doesn't get autogenerated - you need to update
2414         gnome-common.
2415
2416 2001-08-07  Mark McLoughlin <mark@skynet.ie>
2417
2418         * po/Makefile.in.in: Add. Again.
2419
2420 2001-07-31  Bill Haneman <bill.haneman@sun.com>
2421
2422         * libspi/accessible.c : added support for 'description' property.
2423         * libspi/accessible.c
2424         * libspi/desktop.c
2425         * libspi/registry.c : changed to use bonobo_object instead of bonobo_x_object
2426             (since the two are now equivalent in libbonobo)
2427         * idl/Action.idl
2428         * idl/Component.idl
2429         * idl/Hyperlink.idl
2430         * idl/Image.idl
2431         * idl/Selection.idl
2432         * idl/Table.idl
2433         * idl/Text.idl
2434         * idl/Value.idl : changed these 'secondary' interfaces to inherit from
2435              Bonobo::Unknown as does Accessibility::Accessible.
2436         * idl/StreamableContent.idl : as above, and replaced internal InputStream
2437              interface with Bonobo::Stream, since it was redundant with it.
2438              (The Stream returned by a StreamableContext object is expected to
2439              implement only a subset of Bonobo::Stream)
2440
2441 2001-07-28  Anders Carlsson  <andersca@gnome.org>
2442
2443         * libspi/accessible.c (accessible_object_finalize): Change
2444           g_free to g_object_unref since the AtkObject is a GObject.
2445
2446 2001-07-30  Bill Haneman <bill.haneman@sun.com>
2447
2448         * idl/Accessibility.idl: add new IDL files
2449         
2450         Added:
2451         * idl/Action.idl: Definitions of actionable UI object
2452         * idl/Component.idl: Definitions of UI component geometry, etc.
2453         * idl/Hyperlink.idl: Defs of hyperlink behavior
2454         * idl/Image.idl: Def of accessible image
2455         * idl/Selection.idl: Definition of UI object with selectable children
2456         * idl/StreamableContent.idl: Definition of UI object with streamable backing data
2457         * idl/Table.idl: Definitions for access to table ('spreadsheet') elements
2458         * idl/Text.idl: Interface defs for UI elements with complex textual content
2459         * idl/Value.idl: Definition of UI element that is a value controller or display
2460         
2461 2001-07-27  Michael Meeks  <michael@ximian.com>
2462
2463         * po/Makefile.in.in: remove autogenerated file from CVS.
2464
2465         * libspi/Makefile.am: Radicaly re-vamp to simplify & add ORBit2
2466         type library.
2467
2468         * idl/Registry.idl: include guard.
2469
2470         * idl/Accessibility.idl: Add, and include all the other IDL
2471         files.
2472
2473         * idl/*.idl: remove mass of pragmas etc.
2474
2475 2001-07-26  Michael Meeks  <michael@ximian.com>
2476
2477         * registryd/Makefile.am (registryd_SOURCES): remove
2478         redundant at_.
2479
2480 2001-07-27  Mark McLoughlin <mark@skynet.ie>
2481
2482         * libspi/.cvsignore, registryd/.cvsignore,
2483           test/.cvsignore: updated.
2484
2485         * po/Makefile.in.in: gettext update.
2486
2487 2001-07-25  Bill Haneman <bill.haneman@sun.com>
2488
2489         * initial CVS checkin
2490
2491 2001-06-29  Michael Meeks  <michael@ximian.com>
2492
2493         * configure.in: add AM_CONFIG_HEADER to gen config.h
2494
2495         * acconfig.h: add.
2496