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