Deprecation warning should be turned off for release

Bug #1430307 reported by Marc Deslauriers
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Fix Released
High
Lars Karlitski

Bug Description

A lot of applications that are currently shipping in vivid display gtk deprecation warnings. While this is useful to developers, it is a nuisance for users who are powerless to fix these issues.

For certain graphical applications, printing warnings on the console isn't much of an issue, but for others, such as gedit, it's annoying and inelegant.

Here are a few examples:

$ ubuntu-bug sdasdasd
dpkg-query: no packages found matching sdasdasd
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

$ gedit
sys:1: Warning: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkToolButton:stock-id is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkButton:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
sys:1: Warning: The property GtkTreeView:rules-hint is deprecated and shouldn't be used anymore. It will be removed in a future version.

$ brasero

(brasero:5606): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
(brasero:5606): GLib-GObject-WARNING **: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
(brasero:5606): GLib-GObject-WARNING **: The property GtkAlignment:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
(brasero:5606): GLib-GObject-WARNING **: The property GtkAlignment:yalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
(brasero:5606): GLib-GObject-WARNING **: The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version.

$ gnote

(gnote:5712): GLib-GObject-WARNING **: The property GSettings:schema is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkTextTag:foreground-gdk is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkAlignment:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkAlignment:yalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkAlignment:xscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkAlignment:yscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
(gnote:5712): GLib-GObject-WARNING **: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: libgtk-3-0 3.14.8-0ubuntu2
ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0
Uname: Linux 3.19.0-7-generic x86_64
ApportVersion: 2.16.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 10 08:34:20 2015
InstallationDate: Installed on 2013-11-26 (468 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: gtk+3.0
UpgradeStatus: Upgraded to vivid on 2015-03-07 (2 days ago)

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
Revision history for this message
Lars Karlitski (larsu) wrote :

Yeah, let's disable them for the release. Developers can still opt in to showing them while developing an application by setting G_ENABLE_DIAGNOSTIC to 1.

affects: gtk+3.0 (Ubuntu) → ubuntu
Changed in ubuntu:
importance: Undecided → High
status: New → In Progress
affects: ubuntu → glib2.0 (Ubuntu)
Revision history for this message
Iain Lane (laney) wrote :
Revision history for this message
Iain Lane (laney) wrote :

Would appreciate at least trying to do the same for 2.44.1. The fact that some GNOME apps (brasero) aren't fixed should strengthen an argument in favour.

Revision history for this message
Iain Lane (laney) wrote :

(there would be no problem SRUing a fix)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-Don-t-warn-about-deprecated-properties-by-default.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in glib2.0 (Ubuntu):
status: In Progress → Fix Committed
assignee: nobody → Lars Uebernickel (larsu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glib2.0 - 2.44.0-1ubuntu2

---------------
glib2.0 (2.44.0-1ubuntu2) vivid; urgency=medium

  * Use upstream's patch instead.
 -- Iain Lane <email address hidden> Thu, 16 Apr 2015 19:22:56 +0100

Changed in glib2.0 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.