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