diff options
| author | Jan Djärv | 2012-12-30 20:34:25 +0100 |
|---|---|---|
| committer | Jan Djärv | 2012-12-30 20:34:25 +0100 |
| commit | 7ec363cf23ac40b4d6f1423226a2e6cfa5e98df5 (patch) | |
| tree | e46f46c7d2c31b834eddff94d1343228fe10ab54 | |
| parent | 8b745d925b620fba21bd575e375ed101c17d8e29 (diff) | |
| download | emacs-7ec363cf23ac40b4d6f1423226a2e6cfa5e98df5.tar.gz emacs-7ec363cf23ac40b4d6f1423226a2e6cfa5e98df5.zip | |
Silence Gtk deprecation warnings by default.
* configure.ac: New enable: --enable-gtk-deprecation-warnings, default off.
(HAVE_GTK3): If above enable is off, add
-DGDK_DISABLE_DEPRECATION_WARNINGS to GTK_CFLAGS.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.ac | 8 |
2 files changed, 11 insertions, 0 deletions
| @@ -2,6 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | * configure.ac: Check for GtkHandlebox. | 3 | * configure.ac: Check for GtkHandlebox. |
| 4 | Check for GtkTearoffMenuItem. | 4 | Check for GtkTearoffMenuItem. |
| 5 | New enable: --enable-gtk-deprecation-warnings, default off. | ||
| 6 | (HAVE_GTK3): If above enable is off, add | ||
| 7 | -DGDK_DISABLE_DEPRECATION_WARNINGS to GTK_CFLAGS. | ||
| 5 | 8 | ||
| 6 | 2012-12-30 Andreas Schwab <schwab@linux-m68k.org> | 9 | 2012-12-30 Andreas Schwab <schwab@linux-m68k.org> |
| 7 | 10 | ||
diff --git a/configure.ac b/configure.ac index c7785db454f..f0967c33afa 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -359,6 +359,11 @@ AC_ARG_ENABLE(autodepend, | |||
| 359 | found])], | 359 | found])], |
| 360 | [ac_enable_autodepend="${enableval}"],[ac_enable_autodepend=yes]) | 360 | [ac_enable_autodepend="${enableval}"],[ac_enable_autodepend=yes]) |
| 361 | 361 | ||
| 362 | AC_ARG_ENABLE(gtk-deprecation-warnings, | ||
| 363 | [AS_HELP_STRING([--enable-gtk-deprecation-warnings], | ||
| 364 | [Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])], | ||
| 365 | [ac_enable_gtk_deprecation_warnings="${enableval}"],[]) | ||
| 366 | |||
| 362 | #### Make srcdir absolute, if it isn't already. It's important to | 367 | #### Make srcdir absolute, if it isn't already. It's important to |
| 363 | #### avoid running the file name through pwd unnecessarily, since pwd can | 368 | #### avoid running the file name through pwd unnecessarily, since pwd can |
| 364 | #### give you automounter prefixes, which can go away. We do all this | 369 | #### give you automounter prefixes, which can go away. We do all this |
| @@ -1996,6 +2001,9 @@ if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOO | |||
| 1996 | GTK_OBJ=emacsgtkfixed.o | 2001 | GTK_OBJ=emacsgtkfixed.o |
| 1997 | term_header=gtkutil.h | 2002 | term_header=gtkutil.h |
| 1998 | USE_GTK_TOOLKIT="GTK3" | 2003 | USE_GTK_TOOLKIT="GTK3" |
| 2004 | if test "x$ac_enable_gtk_deprecation_warnings" = x; then | ||
| 2005 | GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS" | ||
| 2006 | fi | ||
| 1999 | else | 2007 | else |
| 2000 | check_gtk2=yes | 2008 | check_gtk2=yes |
| 2001 | gtk3_pkg_errors="$GTK_PKG_ERRORS " | 2009 | gtk3_pkg_errors="$GTK_PKG_ERRORS " |