[gedit] Build with deprecations and GSEAL enabled
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Build with deprecations and GSEAL enabled
- Date: Sun, 30 May 2010 17:07:08 +0000 (UTC)
commit 6f45b3728db6fe5701305b0de525f05db874b947
Author: Garrett Regier <alias301 gmail com>
Date: Sun May 30 10:06:38 2010 -0700
Build with deprecations and GSEAL enabled
configure.ac | 14 +++++++++++---
gedit/gseal-gtk-compat.h | 2 +-
2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d97066c..afc4c92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -485,13 +485,20 @@ AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
GNOME_COMPILE_WARNINGS(yes)
+if test "$USE_MAINTAINER_MODE" = "yes"; then
+ enable_deprecations=yes
+else
+ enable_deprecations=no
+fi
+
AC_ARG_ENABLE(deprecations,
[AS_HELP_STRING([--enable-deprecations],
- [warn about deprecated usages [default=no]])],,
- [enable_deprecations=no])
+ [warn about deprecated usages [default=no]])],
+ [enable_deprecations=$enableval], [])
-if test "x$enable_deprecations" = "xyes"; then
+if test "$enable_deprecations" = "yes"; then
DISABLE_DEPRECATED_CFLAGS="\
+-DGSEAL_ENABLE \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
@@ -589,6 +596,7 @@ Configuration:
Python Plugins Support: $enable_python
Spell Plugin enabled: $enable_enchant
Gvfs metadata enabled: $enable_gvfs_metadata
+ Deprecations enabled: $enable_deprecations
"
if expr ${GEDIT_MINOR_VERSION} % 2 > /dev/null; then
diff --git a/gedit/gseal-gtk-compat.h b/gedit/gseal-gtk-compat.h
index e4d674e..9390c84 100644
--- a/gedit/gseal-gtk-compat.h
+++ b/gedit/gseal-gtk-compat.h
@@ -23,7 +23,7 @@
G_BEGIN_DECLS
-#if !GTK_CHECK_VERSION (2, 22, 0)
+#if !GTK_CHECK_VERSION (2, 21, 0)
#define gtk_window_has_group(window) ((window)->group != NULL)
#define gtk_text_view_reset_im_context(view) \
G_STMT_START { \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]