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