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