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 590534 - gnome-python-desktop-2.26.0 libwnck binding breaks with libwnck-2.26.2 (works with libwnck-2.26.1)
gnome-python-desktop-2.26.0 libwnck binding breaks with libwnck-2.26.2 (works...
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
2.27.x
Other All
: Normal critical
: ---
Assigned To: libwnck maintainers
libwnck maintainers
: 597319 (view as bug list)
Depends on:
Blocks: 593515
 
 
Reported: 2009-08-02 16:37 UTC by Jim Ramsay
Modified: 2010-09-09 19:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix glib-mkenums on libwnck (963 bytes, patch)
2009-08-09 18:45 UTC, Arun Raghavan
committed Details | Review

Description Jim Ramsay 2009-08-02 16:37:24 UTC
Steps to reproduce:
python -c "import wnck; print wnck.WINDOW_STATE_URGENT"

Stack trace:

** (-c:20623): WARNING **: Trying to register gtype 'WnckWindowState' as flags when in fact it is of type 'GEnum'

** (-c:20623): WARNING **: Trying to register gtype 'WnckWindowActions' as flags when in fact it is of type 'GEnum'

** (-c:20623): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as flags when in fact it is of type 'GEnum'
Traceback (most recent call last):
  • File "<string>", line 1 in <module>
AttributeError: 'module' object has no attribute 'WINDOW_STATE_URGENT'

Other information:
Other potentially relevant packages on my system:
python-2.6.2
pygtk-2.14.1

Note that if I downgrade libwnck to 2.26.1, I get the expected non-error output:
<flags WNCK_WINDOW_STATE_URGENT of type WnckWindowState>
Comment 1 Arun Raghavan 2009-08-09 18:45:14 UTC
Created attachment 140273 [details] [review]
Patch to fix glib-mkenums on libwnck

This patch fixes libwnck's Makefile.am to correctly generate g_flag_register_static() for flag types (rather than always calling g_enum_register_static()). This fixes the problem with the Python bindings.
Comment 2 Nirbheek Chauhan 2009-09-10 14:48:25 UTC
This is still an issue in 2.27.x branch, can we get this reviewed before 2.28.x ?
Comment 3 Gustavo Carneiro 2009-09-10 15:09:50 UTC
Why do you post a patch for libwnck in a gnome-python-desktop bug report?  Worse than useless...  Reassigning...
Comment 4 Vincent Untz 2009-10-06 17:24:17 UTC
Thanks, committed.
Comment 5 Tony Houghton 2009-11-21 20:03:07 UTC
*** Bug 597319 has been marked as a duplicate of this bug. ***
Comment 6 Christian Persch 2010-09-09 19:22:10 UTC
*** Bug 629194 has been marked as a duplicate of this bug. ***