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