Why?
| From: | Unknown Sender | Date: | Tue, 13 Mar 2001 22:32:34 +0000 |
| Subject: | Why? | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-816@lists.php.net to get a copy of this message | ||
Hey yoo!! How are you guys...
Look, I've tried to modify the fileselection.php script so when you click the ok button in the
file selection, the file selected is printed on the command screen. Well, this is what I did first:
function EndDialog($name) {
print $name . "\n";
return true;
}
function FileDialog() {
$fs = &new GtkFileSelection('File Selection Example');
$ok_button = $fs->ok_button;
$ok_button->connect('clicked', 'enddialog($fs->get_filename())');
$ok_button->connect_object('clicked', array($fs, 'destroy'));
$cancel_button = $fs->cancel_button;
$cancel_button->connect('clicked', 'canceldialog');
$cancel_button->connect_object('clicked', array($fs, 'destroy'));
$fs->show();
}
This didn't work and I think that it was a fatal error too.
Well, can anybody tell me please how can I pass parameters to any function from a connect call? or
should I use other method?
Thank you very much.
AfterGlow.