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