Re: GtkEntry
| From: | (Anson Rinesmith) | Date: | Fri, 21 Dec 2001 15:41:11 +0000 |
| Subject: | Re: GtkEntry | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-901@lists.php.net to get a copy of this message | ||
Okay, that makes sense, because $dbox is coming back with the row I select.
My question is, how do I get this function to do it's work on the
$fw_data_box?
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Anson Rinesmith" <anson@lddcorp.com>
Cc: <php-gtk-general@lists.php.net>; "Markus Fischer"
<mfischer@guru.josefine.at>
Sent: Friday, December 21, 2001 9:28 AM
Subject: Re: [PHP-GTK] GtkEntry
> On Fri, 21 Dec 2001, Anson Rinesmith wrote:
> > I made the following changes reccommend, added a var_dump and $widget
> > paramater to fill_entry.
> >
> > function fill_entry($widget,$dbox){
> > var_dump($dbox);
> > $dbox->set_text("Data Chosen");
> > }
> > ...
> > $frame3 = &new GtkFrame();
> > $box1->pack_start($frame3,false);
> > $fw_data_box = &new GtkEntry();
> > $frame3->add($fw_data_box);
> > $fw_data_box->set_text("TEST");
> > ...
> > clist->connect('select-row','fill_entry',&$fw_data_box);
> >
> > I am getting int(0)
> > Fatal_error: Call to a member function on a non-object in c:\gui.php on
line
> > 30
> >
> > Line 30 is the set_text() line in function fill_entry
>
> The prototype for 'select-row' callback looks like this:
>
> function callback($clist, $row, $column, $event, $custom)
>
> -Andrei
>
> I must say I find television very educational. The minute
> somebody turns it on, I go to the library and read a good book.
> - Groucho Marx
>