Re: Casting
| From: | Andrei Zmievski | Date: | Sat, 28 Jul 2001 23:35:40 +0000 |
| Subject: | Re: Casting | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2375@lists.php.net to get a copy of this message | ||
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