[gtk+] gtk: Get rid of deprecation warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk: Get rid of deprecation warnings
- Date: Tue, 1 May 2012 01:20:56 +0000 (UTC)
commit 4531da17e4fc98781117ec55a3efc900787d9607
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 30 20:44:25 2012 +0200
gtk: Get rid of deprecation warnings
gtk/gtktreemenu.c | 5 +++++
gtk/gtkuimanager.c | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreemenu.c b/gtk/gtktreemenu.c
index 320b563..8fef02e 100644
--- a/gtk/gtktreemenu.c
+++ b/gtk/gtktreemenu.c
@@ -44,6 +44,11 @@
#include "gtkmenushellprivate.h"
#include "gtkprivate.h"
+#undef GDK_DEPRECATED
+#undef GDK_DEPRECATED_FOR
+#define GDK_DEPRECATED
+#define GDK_DEPRECATED_FOR(f)
+
#include "deprecated/gtktearoffmenuitem.h"
/* GObjectClass */
diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c
index c5ce4c9..bb0137f 100644
--- a/gtk/gtkuimanager.c
+++ b/gtk/gtkuimanager.c
@@ -45,6 +45,11 @@
#include "gtkwindow.h"
#include "gtkprivate.h"
+#undef GDK_DEPRECATED
+#undef GDK_DEPRECATED_FOR
+#define GDK_DEPRECATED
+#define GDK_DEPRECATED_FOR(f)
+
#include "gtkuimanager.h"
#include "deprecated/gtktearoffmenuitem.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]