[gtk+] Avoid deprecation warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid deprecation warnings
- Date: Wed, 15 Oct 2014 18:43:36 +0000 (UTC)
commit 4f2feb97c29a6dc436f305497992b1e5a48ec584
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 2ef872e..0789dda 100644
--- a/gtk/deprecated/gtktrayicon-x11.c
+++ b/gtk/deprecated/gtktrayicon-x11.c
@@ -502,10 +502,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]