Re: [PHP-GTK] Casting

[email protected] (Andrei Zmievski)
Newsgroups php.gtk
Message-ID <[email protected]>
On Sun, 29 Jul 2001, Alan Morey [caint.com] wrote:
> Well as i was going thru the arrows section in the gtk tutorial,
> showing how you can put Arrows on Buttons thats where i noticed 
> the part on casting. I was trying to add an arrow to a button
> i already had displayed but i got an error
> Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion `bin->child == NULL' failed.
> 
> And so i thought casting was the answer.

No, it's not. That error means that button already has a child (probably
a label) and you can't add any more. You should create an empty button,
add a horizontal or vertical box to it and then pack label and arrow in
that box.

-Andrei
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.