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