GNOME Bugzilla – Bug 776378
Cannot use functions which take GObject.EnumClass as arguments
Last modified: 2018-01-12 08:30:34 UTC
(see comment for description)
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):
+ Trace 237013
GObject.enum_get_value_by_nick(Gio.BusType, 'system') TypeError: argument enum_class: Expected GObject.EnumClass, but got gi.repository.Gio.type
See also: * https://bugzilla.gnome.org/show_bug.cgi?id=685218 * https://git.gnome.org/browse/pygobject/commit/?id=778d05c9
Created attachment 342457 [details] Java for android
Closing this temporarily, as the attachment above triggers a bug in the gitlab migration tool: https://gitlab.gnome.org/External/bztogl/issues/16 Once that is done we can recreate the bug on gitlab.
This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/148