GNOME Bugzilla – Bug 696855
No gtk_get_option_group in python
Last modified: 2018-01-10 20:24:00 UTC
I want to use gtk_get_option_group(), but there's no Gtk.get_option_group() in python. I see in Gtk-3.0.gir: <function name="get_option_group" c:identifier="gtk_get_option_group" version="2.6" introspectable="0"> So it is un-introspectable. I want to solve it. Can you give me any hint on why it is un-introspectable and what to do?
I downloaded gtk source code, and in gtkmain.c: /** * gtk_get_option_group: (skip) * @open_default_display: whether to open the default display * when parsing the commandline arguments * I think it is the "(skip)" caused this problem. I searched and found it is added by this commit https://mail.gnome.org/archives/commits-list/2011-January/msg04805.html But there's no detailed description. Is this function deprecated?
Hi, It is always unfortunate when code changes are made without at least a link to relevant information about the reasoning. I was able to find the following with a google search for "gtk_get_option_group introspection": https://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00018.html So it sounds like GOptionGroup needs to be registered as a boxed type for this to work anyhow. Your best bet would be to ask on the gtk-devel-list mailing list to see if there is an alternative for what you are trying to accomplish (https://mail.gnome.org/mailman/listinfo/gtk-devel-list).
*** Bug 691659 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- 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/49.