Re: gtkhtml for windows ?



Form mozilla bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=323442

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



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


On 1/16/06, Antonio Gomes <tonikitoo gmail com> wrote:
> he there ...
>
> You do can/should chose 'gtkhtml' for simplicity-wise. But I'm wondering why
> you think *gtkmozembed doesn't support threads* ! When you say to your app
> "load a page" (with gtk_moz_embed_load_uri), it does in another thread, so
> what do you mean ?
>
> regards
>
> On 1/15/06, regatta <regatta gmail com> wrote:
> > Ok, I think I will give gtkhtml2 a try, but is there any
> > document/website for it ? most of the other site point me to
> > www.gnome.org as a home page for gtkhtml2 !!?
> >
> >
> > On 1/15/06, Jernej Simon+AQ0-i+AQ0- < jernej listsonly ena si> wrote:
> > > on Sat, 14 Jan 2006 23:18:27 +-0200, Tor Lillqvist wrote:
> > >
> > > > You will need a shitload of dependencies, too.
> > >
> > > gtkhtml2 needs much less - it's shipped with the GIMP for the help
> system
> > > and IIRC, it only needs libxml2 aside from GTK+-.
> > >
> >
> >
>
> --
> --Antonio Gomes
> http:// tonikitoo (dot) blogspot (dot) com (slash)
> Nokia Technology Institute (INdT)
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
>


--
Best Regards,
--------------------
-*- If Linux doesn't have the solution, you have the wrong problem -*-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]