Re: Geting a GtkTreeModel out of GtkTreeViewColumn

edscott wilson garcia wrote:

> I would use g_object_set_data to associate the treemodel pointer with
> the treeviewcolumn upon creation of the treeviewcolumn, and then use
> g_object_get_data to retrieve the treemodel upon entering
> *get_cell_contents(). Although this is based on the "least effort"
> criteria, there is probably a simpler way (there always is).
Uhm... The GtkTreeViewColumn KNOWS in which GtkTreeView it is
(column->tree_view), so no need to use set_data, except for a
"conceptual" design issue (it's not good to access internal data
directly - this usually is due to a missing API function).


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