gobject

How can I store integers wider than 32 bits in a Gtk.ListStore?

How can I store integers wider than 32 bits in a Gtk.ListStore? Question: It seems that DirEntry‘s f.stat().st_size can return values larger than 2147483647 for the file size, which – in my case – is correct. But when I try to store it in a Gtk.ListStore which has the corresponding column set to int, I …

Total answers: 1

What is the python equivalent of g_log_set_handler when using GLib from python

What is the python equivalent of g_log_set_handler when using GLib from python Question: I want to set the log level in my python glib project. Therefore I am looking for the g_log_set_handler() equivalent when using GLib from python via gi.repository. But the expected GLib.log_set_handler function seems to be missing. Here is a sample output of …

Total answers: 2

Mysterious GObject warning: assertion `G_IS_OBJECT (object)' failed

Mysterious GObject warning: assertion `G_IS_OBJECT (object)' failed Question: I have a warning when I run my GTK (Python GObject introspection) application and I can’t figure out its source. When the application is loading and I’m populating a GtkListStore, after the very first time I append a row, I get the following warning: /usr/lib/python2.7/site-packages/gi/types.py:44: Warning: g_object_set_qdata: …

Total answers: 3