...in the same application - is there anything wrong with doing that?  

I've got a small C socket client that's reading data (some URLs and
whatnot) from a GIOChannel  and opening new GtkWindows, each containing
a GtkMozEmbed object.  But the app just locks up occasionally -
sometimes it'll run all the way through, but far more often it'll lock
up after opening the first window.  If I comment out the calls to
gtk_moz_embed_new() it runs fine with GtkWindows opening and closing, so
the problem seems to be in the way I'm using the GtkMozEmbed API.

I've read the GLib documentation about gdk_thread_enter() and
gdk_thread_leave(), and I'm using those to wrap everything inside my
GIOChannel callback and I'm as wrapping my gtk_main() in them as well. 
But that doesn't seem to be making a difference, and now I'm starting to
wonder if calling gtk_moz_embed_new() several times in the same
application might be the wrong thing to do.  Do I need to call
gtk_moz_embed_push_startup() each time as well?  Or something else?

Any help would be greatly appreciated....

Thanks,

Tom


_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to