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