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