[gtk+] tools: Work with deprecated APIs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tools: Work with deprecated APIs
- Date: Wed, 9 Nov 2011 02:48:04 +0000 (UTC)
commit 0333ed97fe01815559bbb882a4cc2696e255a804
Author: Benjamin Otte <otte redhat com>
Date: Wed Nov 9 03:22:19 2011 +0100
tools: Work with deprecated APIs
We want to screenshot deprecated widgets, so we'd better not fail when
using them.
docs/tools/widgets.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 6731ef0..949a35a 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -1,5 +1,8 @@
#include "config.h"
+#define GDK_DISABLE_DEPRECATION_WARNINGS
+#undef GTK_DISABLE_DEPRECATED
+
#include <gtk/gtkunixprint.h>
#include <gdk/gdkkeysyms.h>
#include <X11/Xatom.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]