On Thu, 2011-02-10 at 16:22 +0000, Emmanuele Bassi wrote: > On Thu, 2011-02-10 at 11:05 -0500, Daniel Vratil wrote: > > > I've run to a problem with clutter initialization and mouse events. I'm > > extending an application which uses standard gtk_init() and gtk_main() to > > initialize GTK in main(). Later, when I initialize clutter by > > gtk_clutter_init() I'm not receiving any mouse events in clutter. So the > > question is: what can I do to receive them? Replacing gtk_init() by > > gtk_clutter_init() is not an option for various reasons, although it is the > > easiest way to make it work :) > > don't call gtk_init() separately: use gtk_clutter_init(). > > the gtk_clutter_init() function will initialize gtk and clutter in the > correct order and will set up the bridge between the two. > > ciao, > Emmanuele. >
Thanks Emmanuele, but the code I'm writing is actually an extension to an existing application and I simply can't change the gtk_init() in main(). The application must not depend on clutter and be linked against clutter libs. Clutter can only be dependency of the plugin I'm working on. Therefor I'm seeking for an alternative way to bridge the clutter and GTK. Thanks! Dan _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
