Re: HTML widget in a GTK window !!!



On Wed,  2 Jan 2002 18:26:34 +0100
"youssa voila fr" <youssa voila fr> wrote:

I'm waiting any help so please compile this exemple on your pc or if possible
send me any exemple that works. Thank you very much.

There are some problems on your code:
1) gtk_moz_embed_new() returns a GtkWidget *, so mozzie should be a GtkWidget *
too. 2) You forgot to add mozzie to the window:
        gtk_container_add( GTK_CONTAINER(window), mozzie );
3) On gtk_moz_embed_load_url() you should use GTK_MOZ_EMBED() macro to typecast
mozzie: gtk_moz_embed_load_url(GTK_MOZ_EMBED(mozzie), "file:/url" );
4) Show everything.

I suggest you take a look at gtkmozembed.h.

Regards.

-- 
=======================================================================
"There is no sadder sight than a young | rogbas at terra dot com dot br 
pessimist, except an old optimist."    | Registered Linux User #109537



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