diff --git a/ChangeLog b/ChangeLog index 5230e15e1a..9229054c8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-02 Dan Williams + + Patch from Christian Persch + + * configure.in + - Check for GTK+ 2.10 in preparation for GtkStatusIcon patch + 2006-11-29 Tambet Ingo Patch by Timo Hoenig : diff --git a/configure.in b/configure.in index e419c85c1f..a8f79cb3cf 100644 --- a/configure.in +++ b/configure.in @@ -193,8 +193,20 @@ if test x"$with_gnome" != xno; then AC_SUBST(GNOME_KEYRING_CFLAGS) AC_SUBST(GNOME_KEYRING_LIBS) + LIBNOTIFY_REQUIRED=0.3.0 + + # Building with GTK+ >= 2.10 will use the GtkStatusIcon applet + # implementation. Earlier versions of GTK+ will use the EggTrayIcon + # applet implementation. + + PKG_CHECK_EXISTS([gtk+-2.0 >= 2.10],[have_gtk_2_10=yes LIBNOTIFY_REQUIRED=0.4.3],[have_gtk_2_10=no]) + if test x"$have_gtk_2_10" != xno; then + AC_DEFINE_UNQUOTED([HAVE_STATUS_ICON], [1], + [Use GtkStatusIcon for the applet's icon rather than an EggTrayIcon]) + fi + if test x"$enable_notify" != xno; then - PKG_CHECK_MODULES([NOTIFY], [libnotify >= 0.3.0], [enable_notify=yes], + PKG_CHECK_MODULES([NOTIFY], [libnotify >= $LIBNOTIFY_REQUIRED], [enable_notify=yes], [enable_notify=no]) if test "x$enable_notify" != "xno"; then AC_DEFINE_UNQUOTED([ENABLE_NOTIFY], [1], @@ -211,7 +223,9 @@ if test x"$with_gnome" != xno; then AC_DEFINE([HAVE_LIBGNOME_2_14],[1],[Define if we have libgnome 2.14]) fi fi + AM_CONDITIONAL(WITH_NOTIFY, test x"$enable_notify" != xno) # can't do it from inside 'if' +AM_CONDITIONAL([HAVE_GTK_2_10],[test "$have_gtk_2_10" = "yes"]) PKG_CHECK_MODULES(LIBNL, libnl-1) AC_SUBST(LIBNL_CFLAGS)