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