Closed
Bug 323442
Opened 20 years ago
Closed 7 years ago
GTKMozEmbed doesn't work if you run it in thread
Categories
(Core Graveyard :: Embedding: GTK Widget, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: regatta, Assigned: mpgritti)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060107 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060107 Firefox/1.5
I'm trying to use gtkmodembed in a C GTK program, it's working fine
but my problem is that gtkmodembed doesn't load a URL if you call
"gtk_moz_embed_load_url" inside a thread
my question is this a problem in my code or it's simply doesn't
support threads (if there is any maillist for gtkmodembed please let
me know) ?
here is an example from my code :
main function :
-----------------------------------------------------------------------------------------------------------------
g_thread_init (NULL);
gdk_threads_enter();
..
gtk_moz_embed_set_comp_path(MOZILLA_LIB_PATH);
gtk_moz_embed_set_profile_path(MOZILLA_PROFILE_PATH,"gwiki");
browser = gtk_moz_embed_new();
g_thread_create(&my_thread,"http://www.gnome.org", FALSE, NULL)
..
gdk_threads_leave ();
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
my_thread function :
gtk_moz_embed_load_url(browser, "http://www.gnome.org"); //
This function doesn't work because we called it from a thread, this is
not the case with other normal GTK widgets
-----------------------------------------------------------------------------------------------------------------
Thanks
Reproducible: Always
Reporter | ||
Comment 1•20 years ago
|
||
BTW: I know I don't have to put "gtk_moz_embed_load_url" in thread in order to load a URL but I need it like that in order to generate the html file (it takes 15 minites) and then load the URL
Comment 2•19 years ago
|
||
Bug 283300 seems to be the same issue (but that bug has expired). I am a developer of Liferea, and this is a problem for us since our application is threaded.
We've found that if one disables the embed tag, it will freeze almost never.
Comment 3•19 years ago
|
||
pertty sure that this is a dup of some other bug. The summary of this problem is that gecko/mozilla can't be run from threads other than the main thread.
Updated•16 years ago
|
QA Contact: pavlov → gtk-widget
Updated•13 years ago
|
Product: Core → Core Graveyard
Comment 4•7 years ago
|
||
Embedding: GTK Widget isn't a thing, closing.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•