GNOME Bugzilla – Bug 590534
gnome-python-desktop-2.26.0 libwnck binding breaks with libwnck-2.26.2 (works with libwnck-2.26.1)
Last modified: 2010-09-09 19:22:10 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):
+ Trace 216750
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>
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.
This is still an issue in 2.27.x branch, can we get this reviewed before 2.28.x ?
Why do you post a patch for libwnck in a gnome-python-desktop bug report? Worse than useless... Reassigning...
Thanks, committed.
*** Bug 597319 has been marked as a duplicate of this bug. ***
*** Bug 629194 has been marked as a duplicate of this bug. ***