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