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