On Saturday 19 May 2007, Dante Passalacqua wrote: > Problem: > So far I've been able to embed gtkmozembed into the application, trouble is > that when the first call is made to any function that receives the > gtkmozembed widget as a parameter i.e: > gtk_moz_embed_load_url(GTK_MOZ_EMBED(mozembed), "http://www.yahoo.com"); > from a different thread that the one that created the widget, I get a > SIGSEV crash.
On May 20, 9:35 am, Michal Ceresna <[EMAIL PROTECTED]> wrote: > AFAIK, methods in the mozilla gui layer have to be called on the main > (gtk-event-dispatching) thread to be precise, whichever *one* thread you init xpcom embedding or xulrunner embedding or however you're embedding on, is the only thread from which you can order gecko around. for controlling it from another thread, you will have to proxy the call to the gecko ui thread, since you're using the gtk_moz_embed_ methods, that means it'll be your job to proxy it. Although in theory you could create your own GTK_MOZ_EMBED object that wrapped the real one and did the proxying (I wouldn't try doing this, there are too many methods, it really isn't worth it). _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
