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