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