guile-gtk-general
[Top][All Lists]
Advanced

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

Re: gtk-widget-ref undefined in guile-gnome0-gtk 2.7.99-4


From: Kevin Ryde
Subject: Re: gtk-widget-ref undefined in guile-gnome0-gtk 2.7.99-4
Date: Sat, 10 Feb 2007 08:55:55 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Stanislas Pinte <address@hidden> writes:
>
> My problem is that I am dynamically creating vboxes using (glade-xml-new
> ...). These vboxes are not the top-level container, they have a parent,
> which is why I must call (unparent ...).

It's not simply gtk_container_remove that should be used is it?

> And i think this causes the unexplained crash we have been experiencing
> since one month:
> as we call (unparent...) the GTK ref counter drops to 0 --> maybe the
> GTK cleaner kicks in, and causes our G_IS_OBJECT(...) assertion failed
> crash

Sounds likely.

> That's why, while reading other C sources using notebook pages and
> component instantiated by glade-xml-new, I saw other people doing an
> gtk_widget_ref before the unparent.

Is unparent meant to be used outside widget implementations?  The
comments / docs suggest not.

(The guile-gtk bindings have an unparent too, also with no special ref
handling, so perhaps it's affected too.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]