PyGObject GtkTreeStore.set override multiple signals



Hi,

I was trying to figure out why a Gtk.ListStore was emitting multiple
row-changed signals when calling set with multiple columns and values.

When I looked at the override I understood why, every call to the set
method with multiple columnid and value pairs results in a call to
set_value for every single one. Each one causing the signal to be
emitted of course.

Unfortunately the commit message [1] is not helpful to understand the
reasoning for using set_value and the documentation also is silent.

Wouldn't using Gtk.ListStore.set in the override make much more sense?
Something like attached patch perhaps?

~infirit

[1]
https://git.gnome.org/browse/pygobject/commit/?id=cadbd4142bd0045368b5123d4b0a1876bdd5d798

Attachment: 0001-Drop-set_value-usage-in-Gtk.ListStore.set-override.patch
Description: Text Data



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