GNOME Bugzilla – Bug 680320
gtk_tree_view_column_set_attributes () is not introspectable
Last modified: 2012-07-30 23:14:28 UTC
Created attachment 219326 [details] [review] Patch. The attached patch adds an override which mimics the C implementation, as gtk_tree_view_column_set_attributes is a wrapper for gtk_tree_view_column_add_attribute. Thanks to dieterv to help me figure this out on IRC.
Thanks for this! For a real test case this should verify that the attributes in the list actually take effect. Could you extend it in that regard?
Created attachment 219907 [details] [review] Improve the testcase in the previous patch
Thanks! Pushed.
My comment on this patch was not sent. I never meant to send a patch without some commenting, sorry, so here it goes again... :) My first try wasn't a test at all, so thanks Martin to ask for an improvement. Hope this one suffices. Would be much better to have a getter in gtk, like: >>> column.get_attribute(cell, MODEL_INDEX) 'text' But that's not the case. So calling treeview.get_preferred_size() to get something in cell.props.text as a side effect was the best I could do. Hope this can be improved in the future.