Re: Bug in gtkbin.c line 217
| From: | Steph | Date: | Sun, 26 Aug 2001 17:28:08 +0000 |
| Subject: | Re: Bug in gtkbin.c line 217 | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-17@lists.php.net to get a copy of this message | ||
Sorry Sander, it should give that error.
Only one child per bin, and window derives from bin.
----- Original Message -----
From: "Sander Roobol" <sandingmachine@f2s.com>
To: <PHP-GTK-DEV@lists.php.net>
Sent: Sunday, August 26, 2001 6:19 PM
Subject: [PHP-GTK-DEV] Bug in gtkbin.c line 217
Gtk-CRITICAL **: file gtkbin.c: line 217 (gtk_bin_add): assertion
`bin->child == NULL' failed
I get this error on Windows 2000 using PHP-GTK 1.0 with the following
script:
<?php
dl('php_gtk.'.(stristr(PHP_OS, 'win')?'dll':'so'));
function main_quit()
{
Gtk::main_quit();
}
$window=&new GtkWindow();
$window->connect('delete_event', 'main_quit');
$vbox=&new GtkVBox();
$window->add($vbox);
$vbox2=&new GtkVBox();
$window->add($vbox2); // comment out this line
file://and the error disappears
$window->show_all();
Gtk::main();
?>
Although it might not be completely correct to add two VBoxes to a window,
it shouldn't give such error.
Sander
--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, e-mail: php-gtk-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net