GNOME Bugzilla – Bug 689624
Let setting values through GtkTreeModelFilter
Last modified: 2013-01-14 16:22:42 UTC
Created attachment 230656 [details] [review] A patch With this patch you can set values in cells the same way you would do that in regular TreeModels (TreeStore, ListStore). Also without this patch it is especially awkward to work with nested filters.
Comment on attachment 230656 [details] [review] A patch As far as I can see, the C API should have the same behaviour, right? In introspection we would like to stay as close to the original API as possible, unless a Python override dramatically simplifies the code. This doesn't seem to be the case here at first sight, as you only have to call one additional function? Do you have a small test program which illustrates that behaviour?
Created attachment 233445 [details] Small file demonstrating behaviour.
Note that same change may need to be applied for GtkTreeModelSort. I haven't checked that though.
Created attachment 233446 [details] Small file demonstrating API It may be me who missed some API function(s) which make this kind of manipulation of filtered model data easy though.
Indeed, that's reasonable; thanks for pointing out! I committed your patch with a test case: http://git.gnome.org/browse/pygobject/commit/?id=c90ef9dfac7dd51ec82c99c3605915996bea0f73