Gtk.BindingArg: Missing wrapper for d union
Hello,
I am trying to use the function Gtk.BindingEntry.add_signall()
the last argument to that function is binding_args
which is a list of Gtk.BindingArg
arguments. From reading the gtk+3.0 C code, I assume that the Gtk.BindingArg
type is supposed to wrap struct GtkBindingArg
which is defined as follows:
struct GtkBindingArg {
GType arg_type;
union {
glong long_data;
gdouble double_data;
gchar *string_data;
} d;
};
Apart from the arg_type
, it also contains a named union d
, which contains value fields which are accessed according to arg_type
. However, from the Python perspective there doesn't seem to be any way to access the d
union. So either the documentation for Gtk.BindingArg
is unclear or the Gtk.BindingArg
type is missing a wrapper for the union. In any case, it seems to me that it is currently impossible to use the Gtk.BindingEntry.add_signall()
and other functions which rely on Gtk.BindingArg
directly.