Re: [PHP-GTK] GTK Entry and GTK Notebook

[email protected] (Andrei Zmievski) Fri, 10 Aug 2001 16:13:58 -0500
Newsgroups php.gtk
Message-ID <[email protected]>
On Fri, 10 Aug 2001, Lorrie Cooke wrote:
> Hi :)
> 
> Im trying to get text out of a entry box that is in a GTK Notebook
> 
> Usually its just a matter of using $name = $entry->get_text();
> 
> however when i try that I am getting an error:  call to undefined 
> function get_text()
> 
> below is a code snippet:
> 
> When I echo $currname it is returning "object" as expected.. but then 
> the error comes.. So im not sure what I have done wrong..

This is because callbacks for 'clicked' signal are passed the button
they are connected to as the first argument. Your custom parameters come
later.

-Andrei
* Why is it always Segmentation's fault? *