RE: [PHP-GTK] get_text and get_chars
| From: | Christian Weiske | Date: | Thu, 04 Dec 2003 04:44:31 +0000 |
| Subject: | RE: [PHP-GTK] get_text and get_chars | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4278@lists.php.net to get a copy of this message | ||
Hi
> $button->connect('pressed','save_product',$title_field->get_text());
The text is loaded when you connect the signal, not when it is fired!
So you should link the signal to a function which retrieves the text and
then call your real function from there.
Regards/MfG,
Christian Weiske
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Christian Weiske
cweiske@cweiske.de
www.cweiske.de
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Always forgetting birthdays? Try birthday reminder!
http://www.cweiske.de/birthday.htm