GTK+ TreeView: Different CellRenderers on the same Column



I am working on a configuration file editor for an graphical
application. Configuration consists of strings, numbers and boolean
values. About 25 values total.

I can use individual widgets for each property, but for larger
quantities a listview is a more compact form.

It would we nice to have textentry fields for strings, spin buttons for
numbers and check boxes for boolean values, all in one column of the
tree view.

Of course I can pop up dialog windows whenever the user clicks on an row
of the treeview, but that is not a nice solution when the user wants to
change more than one value.

With Google, I found some people asking for this, but only one
complicated solution:

http://kapo-cpp.blogspot.com/2008/05/different-cellrenderers-on-same-column.html

I think it is too complicated for me now, not being an GTK expert. (And
I am using the Ruby GTK bindings, which may make it difficult to use the
above solution.)

Is there a better solution or even an example available?

Best Regards,

Stefan Salewski





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]