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