On 02/23/11 at 08:51am, Christian Schwamborn wrote: > Hello list, > I finally found some time to get the basics up and running, here is > a first snapshot of my work, I hope you'll enjoy it. > It's work in progress, so don't expect everything to work, as it is > supposed to. > My main problem at the moment is, that I don't have any idea how to > get the dbus stuff in it's own loop apart from the gui. Every > attempt to run a second loop in it's own thread failed so far. A few > days I read somewhere on the elementary site that the ecore mailoop > isn't thread-save, that might explain some things. Unfortunately the > whole documentation about the e-stuff is very thin, especially the > python api, I couldn't find much except form the C api and the > python examples in the source. > Is there anyone out there, who might know, how to run the dbus in > python in it's own loop? ffphonelog looks like someone managed to > run dbus i/o without blocking the elementary gui, but I think it's > written in C/Vala?.
You can integrate ecore's loop into the GLib mainloop. Have a look at EAPI Eina_Bool ecore_main_loop_glib_integrate(void) This should solve your problem and don't let you to use two different threads which are not necessary :) regards, Simon _______________________________________________ Shr-devel mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-devel
