-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various GTK deprecation warnings #2540
Comments
Note that GTK+ deprecation warnings in many cases mean that those things will be removed in gtk4 and might only have a replacement in gtk4. |
* Use `python -Wall quodlibet/quodlibet.py` to see * The playlist menu one was very noisy * Various OSD plugin deprecation fixes * ditch `new()` when a normal constructor call will do
To replace the deprecated label.set_margin_start(1)
label.set_margin_end(1)
label.set_margin_top(1)
label.set_margin_bottom(1) |
xalign is special here as the method is a method of GtkMisc and the property is a property of GtkLabel (I noticed the latter is missing in the API docs and I've filed pygobject/pgi-docgen#168) |
After more testing, I discovered that nothing happens when I assign to a label's
|
oh, it's |
...that explains why |
We are already aware of them (#2540), but they are shown by default in pytest 3.9 and generate lots of noise.
Perhaps we should close this now? |
Steps
run
python3 -Wall quodlibet/quodlibet.py
Output
Bit of a catch-all but some notable problems:
/quodlibet/quodlibet/browsers/playlists/menu.py:33: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
/quodlibet/quodlibet/ext/events/animosd/osdwindow.py:292: PyGIDeprecationWarning: GObject.get_current_time is deprecated; use GLib.get_current_time instead delta = GObject.get_current_time() - self.fade_start_time
/quodlibet/quodlibet/ext/events/animosd/osdwindow.py:292: PyGIDeprecationWarning: get_current_time is deprecated; use GLib.get_real_time() instead delta = GObject.get_current_time() - self.fade_start_time
/quodlibet/quodlibet/ext/events/animosd/osdwindow.py:51: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "type" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
/quodlibet/quodlibet/qltk/pluginwin.py:404: DeprecationWarning: Gtk.Button.set_focus_on_click is deprecated
errors.set_focus_on_click(False)
The text was updated successfully, but these errors were encountered: