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