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