Re: GtkText
| From: | Scott Mattocks | Date: | Fri, 14 May 2004 12:46:37 +0000 |
| Subject: | Re: GtkText | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4489@lists.php.net to get a copy of this message | ||
Rhys Campbell wrote:
Thanks, I think that's partially there now. I made the changes you suggested but 'Object' gets written to the file instead of the actual value.The connect method is probably also passing the widget and/or signal to the method. Inside your write_message function print out all of the function parameters to see exactly what you are getting. You can do something like this: for ($i = 0; $i < func_num_args(); ++$i) { print_r(func_get_arg($i)); } After you figure out what is being passed to the function you can set up your parameters right so that you know what you have stored in $device_name. function write_message($theWidget, $theSignal, $device_name) { ... } Scott Mattocks