From: "Wang, Jing J" <[email protected]>

>       Unfortunately, most of our target applications are pure clutter apps. 
> Thus, GTK_MODULES doesn't help, right? And I am wondering, because the init 
> function of Cally is gnome_accessibility_init, but standard GTK module use 
> gtk_module_init, IMHO, even target application is GTK-Clutter app (gtk_init 
> is invoked), Cally still can't be loaded correctly.

Gail and atk-bridge also defines the method
gnome_accessibility_module_init. This was because, AFAIK, in the "old times",
the accessibility modules were started in the gnome_program_init [1].

As libgnome was deprecated, so now the gnome applications doesn't call
gnome_program_init, to load the modules in a general way, it's used
GTK_MODULES, as most gnome applications were gtk-based.

I decided to use gnome_accessibility_module_init as was used before,
and seems enough general (anyway, if finally the clutter-modules
branch is applied on the trunk, I should define a method
clutter_module_init in order to use this clutter feature).

About the mixing things: yes, right now if you want to load GAIL and
Cally you could have problems. But, I said that because in some
specific cases, you can call gtk_init just to access to some
gtk-related features (load icons, theme, etc) without use any gtk
widget (and so require GAIL). This is the reason I propose that.

BTW: I realize that I forgot a detail with my comments on the previous
mail. Load the modules in the gtk_init works if gtk_init is called
*after* clutter_init.


[1] 
http://library.gnome.org/devel/libgnome/stable/libgnome-gnome-program.html#gnome-program-init

>       Thanks
> WangJing
> -----Original Message-----
> From: Piñeiro [mailto:[email protected]] 
> Sent: 2009年10月15日 0:55
> To: Wang, Jing J
> Cc: Wan, Shuang; [email protected]
> Subject: Re: [clutter] Re: CALLY over ATSPI-dbus
> 
> From: "Wang, Jing J" <[email protected]>
> 
> > Piñeiro,
> >     Thank you so much for quick answer. My expected test process is 
> > 1. Boot moblin to Desktop
> > 2. Set GTK_MODULES environment= cally:spiatk
> > 3. Launch clutter application we'd like test
> > 4. Run pyatspi based test script to talk with our target application
> > 
> >     Is above test process reasonable? What do you think?
> 
> It would depend on one thing: are your application calling gtk_init
> (). Because remember that is here where the modules listed on
> GTK_MODULES are loaded. If this moblin applications are pure-clutter
> applications, this wouldn't work.
> 
> (And of course, with the assumption that both cally and spiatk will be
> placed on the gtk module directory, in order to find it properly).
> 
> ===
> API ([email protected])

===
API ([email protected])

Reply via email to