I have a warning when I run a GTK application (Python GObject introspection) and I cannot figure out its source. When the application loads, and I populate GtkListStore, after I first add the line, I get the following warning:
/usr/lib/python2.7/site-packages/gi/types.py:44: Warning: g_object_set_qdata: assertion `G_IS_OBJECT (object)' failed
return info.invoke(*args)
The remaining lines are added without any additional warnings. In fact, it always rises only once, always on the first element to be added. But the actual contents of the string do not seem to matter; he raises a warning, no matter what. When the program finishes loading, all the lines look fine when I view them in the TreeView.
My list store is as follows:
self.list_store = Gtk.ListStore(bool, str, str, str, str, str, str,
str, str, str, str, GdkPixbuf.Pixbuf,
str, str, str, object, Pango.Weight)
The last few columns are hidden from the associated GtkTreeView, but a warning occurs before the TreeView is created, so I'm sure it comes from ListStore.Needless to say that I'm sure that all the rows that I pass are in the correct format, since, as I already said, a warning always occurs after the first line, no matter which line I add in the first place.
Does anyone know what could be causing this? This does not prevent my application from working, so this is not an emergency, but I would prefer not to spit out warnings for the end user.
Edit: I have confirmed using the Python command line argument -W allthat the warning does indeed go up for all lines.
append(), pdb, , interstingly, gi, , GdkPixbuf, , . , Pixbuf , , , . Pixbuf TreeView, , .