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