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 783468 - Specify the Wnck version to silence a warning
Specify the Wnck version to silence a warning
Status: RESOLVED FIXED
Product: d-feet
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: D-Feet Maintainer(s)
D-Feet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-06-06 11:15 UTC by Debarshi Ray
Modified: 2017-06-16 20:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Specify the Wnck version to silence a warning (886 bytes, patch)
2017-06-06 11:16 UTC, Debarshi Ray
none Details | Review
Specify the Wnck version to silence a warning (993 bytes, patch)
2017-06-06 13:44 UTC, Debarshi Ray
none Details | Review

Description Debarshi Ray 2017-06-06 11:15:55 UTC
Otherwise, we get:
  dfeet/wnck_utils.py:9: PyGIWarning: Wnck was imported without
    specifying a version first. Use gi.require_version('Wnck', '3.0')
    before import to ensure that the right version gets loaded.
Comment 1 Debarshi Ray 2017-06-06 11:16:40 UTC
Created attachment 353254 [details] [review]
Specify the Wnck version to silence a warning
Comment 2 Debarshi Ray 2017-06-06 11:58:18 UTC
Looks like specifying the version actually fails the import. :/
Comment 3 Debarshi Ray 2017-06-06 13:44:50 UTC
Created attachment 353260 [details] [review]
Specify the Wnck version to silence a warning
Comment 4 Simon McVittie 2017-06-06 21:32:23 UTC
(In reply to Debarshi Ray from comment #3)
> Specify the Wnck version to silence a warning

Not a d-feet maintainer, but this looks good to me.
Comment 5 Thomas Bechtold 2017-06-16 20:06:21 UTC
Applied in git. Thanks!