Re: Why?

From: Date: Tue, 13 Mar 2001 22:38:21 +0000
Subject: Re: Why?
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-817@lists.php.net to get a copy of this message
Funnily enough that's the first thing I tried too, mine works now. Hold on 5 minutes & I'll be on yr case! ----- Original Message ----- From: "Guido" <snoop@velocom.com.ar> To: <php-gtk@lists.php.net> Sent: Tuesday, March 13, 2001 10:32 PM Subject: [PHP-GTK] Why? 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.

« previous php.gtk (#817) next »