GNOME Bugzilla – Bug 790127
disclistboxwidget: fix deprecation warning for constructor
Last modified: 2017-12-27 17:34:29 UTC
this fixes the following warning message: /home/jean/tmp/jhbuild/install/lib/python3.5/site-packages/gnomemusic/widgets/disclistboxwidget.py:156: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "homogeneous" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations super().__init__(self)
Created attachment 363297 [details] [review] disclistboxwidget: fix deprecation warning for constructor
Review of attachment 363297 [details] [review]: super() is the python way to call a superclass. So I'm not sure this is the right solution.
I agree with you. I've used this approach because it's used all over the source code and it removes the warning. I do not know what the right approach is.
I think super().__init__() should do the trick. What baffles me why only this class gives a warning and other similar classes don't. Music uses a lot of different coding conventions which built up over time. The goal is to unify it in the propery way.
I committed 9c47531f8eed35 based on your patch, thanks for your contribution. This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.