Date: Fri, 2 May 2003 17:06:48 +0100 To: Olivier Andrieu Cc: lablgtk at kaba.or.jp Subject: Re: GtkHtml bindings for OCaml - some help required Message-ID: <20030502160648.GA25448 at redhat.com> References: <20030502130442.GA24136 at redhat.com> <16050.29386.415127.952122 at akasha.ijm.jussieu.fr> <20030502134153.GB24136 at redhat.com> <16050.30735.677940.706942 at akasha.ijm.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16050.30735.677940.706942 at akasha.ijm.jussieu.fr> From: Richard Jones On Fri, May 02, 2003 at 03:52:15PM +0200, Olivier Andrieu wrote: > but why don't you call gconf_init then ? Actually, the real reason would be 'because I don't know how to'. > gHtml.cmo should be in lablgnome.cma so there's no need to load > another time. Ah, that works. I've isolated the problem down to one line of code in gtklayout.c now: static void gtk_layout_size_allocate (GtkWidget *widget, GtkAllocation *allocation) ... layout->hadjustment->page_size = allocation->width; The layout pointer is correct. layout->hadjustment is NULL, hence the line fails. Somehow I need to initialize the {h,v}adjustment fields to something non-NULL when creating the widget, but I don't know how to do that. 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 MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles, RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/