gdpc (2.2.5-2) 30_gdk_enable_deprecated.patch

Summary

 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Description: Drop -DGDK_DISABLE_DEPRECATED
 gdpc uses GDK drawing functions, and needs to be converted to use Cairo
 instead.  In the meantime, -DGDK_DISABLE_DEPRECATED unhelpfully breaks
 prototypes in release builds, so drop it.
Author: Colin Watson <cjwatson@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/770768
Forwarded: no
Last-Update: 2011-09-19

Index: b/Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC = gcc
-FLAGS=$(CFLAGS) -g -Wall `pkg-config --cflags gtk+-2.0 gthread-2.0` -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
+FLAGS=$(CFLAGS) -g -Wall `pkg-config --cflags gtk+-2.0 gthread-2.0` -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
 LIBS=`pkg-config --libs gtk+-2.0 gthread-2.0`
 bindir ?= /usr/bin