Re: (Error in an example a bit modified)...
| From: | Celestino Roberto Alejandro | Date: | Fri, 09 Mar 2001 19:35:54 +0000 |
| Subject: | Re: (Error in an example a bit modified)... | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-641@lists.php.net to get a copy of this message | ||
Thanks....yes...Andrei, i think that can push more of two button down the
main container, is say the window...but recently i see the sample, gtk.php,
and see that pus all down the GtkVbox....
..and also see, that
GtkWindow
void .set_usize(width,heigth);
void .set_uposition(x, y);
this are for setup the size and position...i believe?...
..thanks....(where i can found a draft, a rfc, a doc, about the theory of
GTK, is say the way of work ....?)
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Steph" <Steph.Fox@btinternet.com>
Cc: <php-gtk@lists.php.net>; "Celestino Roberto Alejandro"
<rcelestino@elsitio.com.ar>
Sent: Friday, March 09, 2001 4:20 PM
Subject: Re: [PHP-GTK] (Error in an example a bit modified)...
> 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. *
>