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