[gtkada] showing and editing different types in same treeview column
Dmitry A. Kazakov
mailbox at dmitry-kazakov.de
Thu May 19 08:58:51 CEST 2016
On 19/05/2016 07:23, Rob Groen wrote:
> In a GtkTreeView I want to show and edit in the same column different
> types of entities, e.g. integers, strings, enums. I would like to edit
> these entities using spinbutton, entry and combobox respectively.
> Also, some of the entities are editable, and some aren't.
>
> What I can do is pack 3 different renderers in the treeview column,
> but that implies for each renderer a different column in the
> underlying tree/list-store to set the value and the editability of the
> renderer.
>
You can use single text renderer and use custom Set_Cell_Data function
to set the renderer's "text" property to whatever text you want it to show.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20160519/3458acbc/attachment.html>
More information about the gtkada
mailing list