Commit 6f45b372 authored by Garrett Regier's avatar Garrett Regier

Build with deprecations and GSEAL enabled

parent 7340cc51
......@@ -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
......
......@@ -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 { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment