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