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