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