Re: Trying hard with a custom cellrenderer.
- From: Germán Diago <germandiago gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Trying hard with a custom cellrenderer.
- Date: Thu, 1 Jul 2010 16:19:50 +0200
looking at Gtk::TreeModelColumnBase constructor I see it has a GType
parameter when specializing a Gtk::TreeModelColumn.
Does this mean that the type I specialize for rendering must be a Glib::Object?
2010/7/1 Germán Diago <germandiago gmail com>:
> Maybe it's not worth the effort. Maybe I should keep it as is.
>
>
>> To use <URL*> template you must specialize it yourself using Gtk
>> namespace. And implement all functions to get/set value from/into cell,
>> I guess.
>>
>> I suggest, you to use <void*> template and override
>> render/get_size-_vfunc() where get value from property with:
>>
>> void* ptr = property_url();
>> URL* url = reimplement_cast< URL* >( ptr );
>>
>> Either use TreeViewColumn::set_cell_data_func().
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]