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