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 649630 - Gtk.accelerator_get_label: argument 1: Must be Gdk.ModifierType, not GdkModifierType
Gtk.accelerator_get_label: argument 1: Must be Gdk.ModifierType, not GdkModif...
Status: RESOLVED DUPLICATE of bug 647581
Product: pygobject
Classification: Bindings
Component: introspection
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-07 07:32 UTC by Bug flys
Modified: 2011-05-12 16:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bug flys 2011-05-07 07:32:08 UTC
version: python-gobject 2.28.3-1ubuntu1

When hooking up the "accel-edited" signal of GtkCellRendererAccel, and call Gtk.accelerator_get_label() inside the callback, I get:

(<CellRendererAccel object at 0xb730e7d4 (GtkCellRendererAccel at 0x98fd440)>, '3', 100L, <flags GDK_CONTROL_MASK of type GdkModifierType>, 40L)
Traceback (most recent call last):
  • File "./fontforge-hotkey", line 73 in on_cellrendereraccel1_accel_edited
    key_str = Gtk.accelerator_get_label(accel_key, accel_mods)
  • File "/usr/lib/python2.7/dist-packages/gi/types.py", line 44 in function
    return info.invoke(*args)
TypeError: argument 1: Must be Gdk.ModifierType, not GdkModifierType

Comment 1 Sebastian Pölsterl 2011-05-12 16:52:18 UTC

*** This bug has been marked as a duplicate of bug 647581 ***