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