Re: GtkEntry
| From: | Andrei Zmievski | Date: | Fri, 21 Dec 2001 15:28:30 +0000 |
| Subject: | Re: GtkEntry | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-900@lists.php.net to get a copy of this message | ||
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