Re: (Error in an example a bit modified)...
| From: | Steph | Date: | Fri, 09 Mar 2001 19:18:45 +0000 |
| Subject: | Re: (Error in an example a bit modified)... | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-639@lists.php.net to get a copy of this message | ||
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".