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