GNOME Bugzilla – Bug 724985
meld spits 'scary' warnings on startup
Last modified: 2014-02-25 21:53:48 UTC
bin/meld:157: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading GObject.threads_init() /home/dle1gis/Documents/osc/GNOME/Next/meld/meld/meld/meldwindow.py:137: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for name or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.actiongroup = Gtk.ActionGroup('MainActions') /home/dle1gis/Documents/osc/GNOME/Next/meld/meld/meld/meldwindow.py:143: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for name, label, tooltip, stock_id or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations _("Open recent files"), None) /home/dle1gis/Documents/osc/GNOME/Next/meld/meld/meld/ui/notebooklabel.py:41: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for homogeneous, spacing or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations Gtk.HBox.__init__(self, False, 4) /home/dle1gis/Documents/osc/GNOME/Next/meld/meld/meld/meldwindow.py:497: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for name or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations self.tab_switch_actiongroup = Gtk.ActionGroup("TabSwitchActions") /home/dle1gis/Documents/osc/GNOME/Next/meld/meld/meld/meldwindow.py:506: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for name, label, tooltip, stock_id, value or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations action = Gtk.RadioAction(name, label, tooltip, None, i)
Created attachment 270021 [details] [review] Fix deprecation warnings
That all looks good except for the GObject.threads_init() removal. Current Meld requires only PyGObject 3.6, so we can't rely on the 3.10.2 change that made that call optional. If you could update your patch to remove that then I'll happily push the rest.
Created attachment 270187 [details] [review] Version 2 - without thread_init removed
I've pushed your patch now. Thanks for the report and patch.