Date: Fri, 2 May 2003 14:41:53 +0100 Cc: lablgtk at kaba.or.jp Subject: Re: GtkHtml bindings for OCaml - some help required Message-ID: <20030502134153.GB24136 at redhat.com> References: <20030502130442.GA24136 at redhat.com> <16050.29386.415127.952122 at akasha.ijm.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16050.29386.415127.952122 at akasha.ijm.jussieu.fr> From: Richard Jones On Fri, May 02, 2003 at 03:29:46PM +0200, Olivier Andrieu wrote: > GnomeCanvas is derived from GtkLayout. But it's in lablgtk2. I'll have a look at it. > > Any ideas what I'm doing wrong? > > Nope. What are the warning messages ? Did you link gtkInit.cmo in your > test program ? The only warning message is: gtkhtml-WARNING **: gconf is not initialized, please call gconf_init before using GtkHTML library. Meanwhile it's initialized by gtkhtml itself. This message is generated when the class is initialized, which in turn happens the first time gtk_html_new() is called, which is why I think this function _is_ being called. I wrote a test program to see what the effect would be if gnome_init*() or gtk_init() wasn't being called. gnome_init*() doesn't seem to make any difference, and not calling gtk_init() causes a huge number of warnings, which I'm not seeing. All very confusing. This is how I run the program: ocaml -w s -I +lablgtk lablgtk.cma lablgnome.cma gtkInit.cmo \ src/gHtml.cmo examples/gtkhtml/test_gtkhtml.ml (extra load of src/gHtml.cmo because that file doesn't seem to be copied into /usr/lib/ocaml/3.06/ by a 'make install') Rich. -- Richard Jones, Red Hat Inc. (London) and Merjis Ltd. http://www.merjis.com/ http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj NET::FTPSERVER is a full-featured, secure, configurable, database-backed FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/