Date: Fri, 2 May 2003 14:57:30 +0100 Cc: lablgtk at kaba.or.jp Subject: Re: GtkHtml bindings for OCaml - some help required Message-ID: <20030502135730.GC24136 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 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 13406)] 0x4046d0b5 in gtk_layout_get_type () from /usr/lib/libgtk-1.2.so.0 (gdb) frame 1 #1 0x40987296 in size_allocate (widget=0xbfffe690, allocation=0xbfffe690) at gtkhtml.c:935 935 ( *GTK_WIDGET_CLASS (parent_class)->size_allocate) (widget, allocation); (gdb) print *widget $1 = {object = {klass = 0x1f0000, flags = 17629426, ref_count = 3221219064, object_data = 0x40461054}, private_flags = 11064, state = 13 '\r', saved_state = 8 '\b', name = 0xbfffe6f0 "", style = 0x4050b2b8, requisition = {width = 3430, height = 16454}, allocation = {x = -19784, y = 16464, width = 30732, height = 16464}, window = 0xbfffe798, parent = 0x4047adcc} This looks to me like 'widget' is bogus, right? The object->ref_count field looks completely wild. Is there a way to get to the actual struct _GtkHTML *? All of this gtk fake class nuttiness is starting to remind me of Xt. Rich. ---- In context: static void size_allocate (GtkWidget *widget, GtkAllocation *allocation) { GtkHTML *html; gboolean changed_x = FALSE, changed_y = FALSE; g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_HTML (widget)); g_return_if_fail (allocation != NULL); if (GTK_WIDGET_CLASS (parent_class)->size_allocate) ( *GTK_WIDGET_CLASS (parent_class)->size_allocate) (widget, allocation); -- Richard Jones, Red Hat Inc. (London) and Merjis Ltd. http://www.merjis.com/ http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes, trees, string funcs, pool allocator: http://www.annexia.org/freeware/c2lib/