2007-12-27 Jan Michael Alonzo <jmalonzo@unpluggable.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Dec 2007 23:14:27 +0000 (23:14 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Dec 2007 23:14:27 +0000 (23:14 +0000)
        Reviewed by Alp Toker.

        http://bugs.webkit.org/show_bug.cgi?id=16353
        [GTK] Check for deprecated API use (G_DISABLE_DEPRECATED etc.)

        Added the flags mentioned in the bug only when doing 'debug'
        builds. -DGST_DISABLE_DEPRECATED only added when video is enabled.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29006 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
GNUmakefile.am
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.pro
WebKit.pri

index e815a27..e7abbc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2007-12-27  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
+
+        Reviewed by Alp Toker.
+
+        http://bugs.webkit.org/show_bug.cgi?id=16353
+        [GTK] Check for deprecated API use (G_DISABLE_DEPRECATED etc.)
+
+        Added the flags mentioned in the bug only when doing 'debug'
+        builds. -DGST_DISABLE_DEPRECATED only added when video is enabled.
+
+        * GNUmakefile.am:
+        * WebKit.pri:
+
 2007-12-26  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
 
         Reviewed by Alp Toker.
index 841e8bd..b5ff680 100644 (file)
@@ -154,6 +154,15 @@ global_cppflags += \
 
 if !ENABLE_DEBUG
 global_cppflags += -DNDEBUG
+else 
+webkitgtk_cppflags += \
+       -DG_DISABLE_DEPRECATED \
+       -DGDK_PIXBUF_DISABLE_DEPRECATED \
+       -DGDK_DISABLE_DEPRECATED \
+       -DGTK_DISABLE_DEPRECATED \
+       -DPANGO_DISABLE_DEPRECATED \
+       -DGDK_MULTIHEAD_SAFE \
+       -DGTK_MULTIHEAD_SAFE
 endif
 
 if TARGET_X11
index fcaefcb..7f15728 100644 (file)
@@ -1,3 +1,16 @@
+2007-12-27  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
+
+        Reviewed by Alp Toker.
+
+        http://bugs.webkit.org/show_bug.cgi?id=16353
+        [GTK] Check for deprecated API use (G_DISABLE_DEPRECATED etc.)
+
+        Added the flags mentioned in the bug only when doing 'debug'
+        builds. -DGST_DISABLE_DEPRECATED only added when video is enabled.
+
+        * GNUmakefile.am:
+        * WebCore.pro:
+
 2007-12-27  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Eric Seidel.
index e5cf73f..c575f2a 100644 (file)
@@ -1044,6 +1044,10 @@ FEATURE_DEFINES_JAVASCRIPT += ENABLE_VIDEO=1
 
 webkitgtk_cppflags += -DENABLE_VIDEO=1
 
+if ENABLE_DEBUG
+webkitgtk_cppflags += -DGST_DISABLE_DEPRECATED
+endif # END ENABLE_DEBUG
+
 webkitgtk_built_sources += \
        DerivedSources/JSHTMLSourceElement.h \
        DerivedSources/JSHTMLAudioElement.h \
index 84dc6e8..2f88abc 100644 (file)
@@ -1125,6 +1125,8 @@ contains(DEFINES, ENABLE_VIDEO=1) {
             platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp \
             platform/graphics/gtk/VideoSinkGStreamer.cpp
 
+        CONFIG(debug):DEFINES += GST_DISABLE_DEPRECATED
+
         PKGCONFIG += gstreamer-0.10 gstreamer-plugins-base-0.10 gnome-vfs-2.0
         LIBS += -lgstinterfaces-0.10 -lgstbase-0.10 -lgstvideo-0.10
     }
index 640fa34..ce32d28 100644 (file)
@@ -58,6 +58,10 @@ CONFIG(release) {
     DEFINES += NDEBUG
 }
 
+gtk-port:CONFIG(debug) {
+    DEFINES += G_DISABLE_DEPRECATED GDK_PIXBUF_DISABLE_DEPRECATED GDK_DISABLE_DEPRECATED GTK_DISABLE_DEPRECATED PANGO_DISABLE_DEPRECATED GDK_MULTIHEAD_SAFE GTK_MULTIHEAD_SAFE
+}
+
 BASE_DIR = $$PWD
 qt-port:INCLUDEPATH += \
     $$PWD/WebKit/qt/Api