Cannot use functions which take GObject.EnumClass as arguments
Original issue: https://bugzilla.gnome.org/show_bug.cgi?id=776378
Cannot use functions which take GObject.EnumClass as arguments
Particularly GObject.enum_get_value_by_nick() is not functioning. Normally GType or GI classes are automatically coerced to GObjectClass instances. In the case of GObject.GEnum, it is directly derived from the builtin Python "int" so this may be problematic.
Example:
from gi.repository import GObject, Gio
GObject.enum_get_value_by_nick(Gio.BusType, 'system')
Traceback (most recent call last):
File "enum.py", line 3, in <module>
GObject.enum_get_value_by_nick(Gio.BusType, 'system')
TypeError: argument enum_class: Expected GObject.EnumClass, but got gi.repository.Gio.type