GNOME Bugzilla – Bug 790346
Gtk.ListStore/TreeStore.set use set_value in override causing more than one signal to be fired
Last modified: 2017-11-16 17:43:09 UTC
Created attachment 363643 [details] [review] Do not use set_value in in set override While working on some code that uses a cell_data function I saw it being called more than I was expecting. Turns out in the override the set function loops over iterable passed to the set function and calls set_value for each iteration. Updating a single row with 100 columns will cause 100 row-changed signals to be emited which is not very nice and inefficient. Attached patch keeps the validation but use Gtk.List/TreeStore.set to update row instead of set_value.
Review of attachment 363643 [details] [review]: thanks, lgtm