[gtk+/gtk-3-14] Avoid deprecation warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] Avoid deprecation warnings
- Date: Wed, 15 Oct 2014 18:44:19 +0000 (UTC)
commit 627c285b4ccc0bcb956ad78c8e04767c70f9cd48
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 15 14:41:42 2014 -0400
Avoid deprecation warnings
We don't really care if we use deprecated API inside deprecated
code, so just ignore the warning.
gtk/deprecated/gtktrayicon-x11.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/deprecated/gtktrayicon-x11.c b/gtk/deprecated/gtktrayicon-x11.c
index 371cd0e..bfd6b9d 100644
--- a/gtk/deprecated/gtktrayicon-x11.c
+++ b/gtk/deprecated/gtktrayicon-x11.c
@@ -501,10 +501,13 @@ gtk_tray_icon_get_visual_property (GtkTrayIcon *icon)
icon->priv->manager_visual_rgba = FALSE;
}
+
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* For the background-relative hack we use when we aren't
* using a real RGBA visual, we can't be double-buffered
*/
gtk_widget_set_double_buffered (GTK_WIDGET (icon), icon->priv->manager_visual_rgba);
+G_GNUC_END_IGNORE_DEPRECATIONS
if (type != None)
XFree (prop.prop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]