[prev in list] [next in list] [prev in thread] [next in thread]
List: php-gtk-general
Subject: Re: [PHP-GTK] Re: GtkCellLayout::set_cell_data_func issue in Gtk2
From: Matt <matt () vhub ! com>
Date: 2008-03-03 18:00:50
Message-ID: 47CC3CD2.1040607 () vhub ! com
[Download RAW message or body]
Elizabeth M Smith wrote:
> Matt wrote:
>> I just upgraded from the Beta to php-gtk 2. I've been tweaking things to
>> work with it (mainly the Gtk::TYPE's to GObject::TYPE) but I've run
>> across one issue with GtkCellLayout::set_cell_data_func.
>>
>> Before, I could pass it a callback function in the current class like so:
>>
>> $col->set_cell_data_func($renderer, array($this, 'format_col'));
>>
>> And that worked fine.. now it seems it won't take the array and returns
>> an error:
>>
>> Warning: Unable to invoke callback 'Array' specified in File.php on line
>> xxx
>>
>> Has this changed any in the new release?
>>
>> Thanks!
>>
>> -Matt
>
> smells like a bug to me (an odd one to boot) - does a straight function
> callback work?
>
Yes, that works just fine. It does seem like an odd bug.. never had a
problem before with referencing a callback function either way.
(Argh, sending this message again.. been awhile since I've used a
mailing list and didn't address the reply to the list.)
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic