Context:
There was once a post on preventing window overlap with Gtk+2.x Recent changes in Gtk+3 have however affected the gdk_property_change()
function, which has the PyGobject Introspection (hereafter referred to as PyGI) equivalent of Gdk.property_change()
. In the previous SO answer the property_change
arguments were of type (str, str, Gdk.PROP_MOD_*, int, data), the Gtk+3 equivalent asks instead for (GdkWindow, GdkAtom, GdkAtom, int, GdkPropMode, data, int). Passing a GdkAtom as argument rather than a string seems to be the new requirement.
Problem:
New Gdk.Atom can be created with PyGtk with the gtk.gdk.atom_intern(str)
method. The corresponding C function in the documentation is gdk_atom_intern()
. There is however no such method in PyGI: a mere dir(Gtk)
will return Gdk.Atom or Gdk.atom_name but no Gdk.atom_intern. The Gdk.Atom has no apparent method either. PS: it seems reading this code at line 139 that Gdk.atom_intern()
would be available though.
Question:
Do you know how I could create (or find out how to create) a Gdk.Atom using PyGI with Gtk+3?
Thanks.