Re: gtk radio button
| From: | Andrei Zmievski | Date: | Tue, 20 Mar 2001 20:54:46 +0000 |
| Subject: | Re: gtk radio button | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1026@lists.php.net to get a copy of this message | ||
On Tue, 20 Mar 2001, Iuri Fiedoruk wrote:
> I just got the CVS with gtk radio button support but found there is a problem.
> I did:
>
> $radio1 = &new GtkRadioButton(' Label');
>
> and got:
>
> <b>Warning</b>: gtkradiobutton() expects argument 1 to be gtkradiobutton or
> null, string given in <b>/home/bart/textos/php-gtk/biomedica/draw.php</b> on
> line <b>216</b><br>
>
> Ok, so radio button label isn't implemented, no problem, changed to:
>
> $radio1 = &new GtkRadioButton(' Label');
>
> Not I got the real serious problem.... php just segfaults when using gtk
> radio button, so seems, it isn't working well...
> (OBS: I used make cvsclean, phpize, configure, make, make install, it dosen't
> seems to be a compilation problem).
You are supposed to use it like this:
$radio1 = &new GtkRadioButton(null, 'Label 1');
$radio2 = &new GtkRadioButton($radio1, 'Label 2');
-Andrei
Commitment, n.:
Commitment can be illustrated by a breakfast of ham and eggs. The chicken
was involved, the pig was committed.