srynoname
Joined: 13 Aug 2006 Posts: 9
|
Posted: Sun Aug 20, 2006 4:07 pm Post subject: Porting connect_simple to Glade |
|
|
hello,
i have the following code:
| Code: | $glade = new GladeXML($file);
$button=$glade->get_widget('addbutton');
$button->connect_simple('clicked', 'test', $glade);
function test($glade)
{
$textfield=$glade->get_widget('textfield');
$text=$textfield->get_text();
echo"The text is: $text";
} |
this works really fine, but i'd like to include this part in the glade file:
| Code: | $button=$glade->get_widget('addbutton');
$button->connect_simple('clicked', 'test', $glade); |
without passing $glade it's really simple, but how about $glade?
thanks in advance  |
|