Re: (Error in an example a bit modified)...

From: Date: Fri, 09 Mar 2001 19:20:24 +0000
Subject: Re: (Error in an example a bit modified)...
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-640@lists.php.net to get a copy of this message
No, it's because he's trying to add 2 buttons to the window. He should create a vbox first, add that to window, and add two buttons to it. On Fri, 09 Mar 2001, Steph wrote: > isn't 'hello' a function? - yeh it is, I just checked. > > Write another function and link the 2nd button to it, see if that helps any. > > ----- Original Message ----- > From: "Celestino Roberto Alejandro" <rcelestino@elsitio.com.ar> > To: <php-gtk@lists.php.net> > Sent: Friday, March 09, 2001 7:13 PM > Subject: [PHP-GTK] (Error in an example a bit modified)... > > > Hello, i modified the hello.php samples that companion the binaries for windows, only added a > new button after of the hello world button widget,....but > > $window = &new GtkWindow(); > $window->connect('destroy', 'destroy'); > $window->connect('delete-event', 'delete_event'); > $window->set_border_width(10); > > /* > * Create a button, connect its clicked signal to hello() function and add > * the button to the window. > */ > $button = &new GtkButton('Hello World!'); > $button->connect('clicked', 'hello'); > $window->add($button); > > $button2 = &new GtkButton('Hello!'); > $button2->connect('clicked', 'hello'); > $window->add($button2); > /* > * Create a new tooltips object and use it to set a tooltip for the button. > */ > ......... > ... > .etc. > and then give an error in Gtk-CRITICAL: file gtkbin.c line 217 (gtk_bin_add) assertion: > bin->child==NULL failed.. > ..do you can see that i am doing bad? > thanks...the "molesto". > > > > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -Andrei * On the keyboard of life, always keep one finger on the escape key. *

« previous php.gtk (#640) next »