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