clearing an attribute mapping from treeview columns



Hello,

1) Is there a way to remove a specific attribute mapping from a treeview
column? Something like: gtk_tree_view_column_remove_attribute()?

or

2) Is there a way to get the model column an attribute (e.g. "text") is
mapped to?
In this case i could use gtk_tree_view_column_remove_attributes() and
restore some removed attributes.


Background information: In my application i'd to mark lines in a
treeview based on a boolean value in the tree model. The user can modify
the style how the lines should be marked (background, foreground, font,
etc.).
If for example the foreground is set by the user, the attribute
'foreground-gdk' of the renderer is set and a treeviewcolumn attribute
'foreground-set' (pointing at the boolean model value) is added.
If the foreground is un-set, i have to remove the 'foreground-set'
attribute from the column, but how?


Markus.





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