After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696855 - No gtk_get_option_group in python
No gtk_get_option_group in python
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
: 691659 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-29 14:32 UTC by fpemud
Modified: 2018-01-10 20:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description fpemud 2013-03-29 14:32:42 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?
Comment 1 fpemud 2013-03-29 23:48:57 UTC
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?
Comment 2 Simon Feltman 2013-03-30 02:50:26 UTC
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).
Comment 3 Simon Feltman 2013-04-14 11:29:29 UTC
*** Bug 691659 has been marked as a duplicate of this bug. ***
Comment 4 GNOME Infrastructure Team 2018-01-10 20:24:00 UTC
-- 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.