[libepc] Drop GTK+ requirement back to 2.10



commit dcca2c2c6dc57c084c02712289f56a036840f802
Author: David King <davidk openismus com>
Date:   Tue Mar 23 11:20:54 2010 +0100

    Drop GTK+ requirement back to 2.10
    
    * libepc-ui/password-dialog.c: Wrap gtk_widget_get_visible() call in
    an ifdef, so that a newer version of GTK+ is not required.
    * configure.ac: Drop GTK+ requirement to 2.10.

 ChangeLog                   |    8 ++++++++
 configure.ac                |    2 +-
 libepc-ui/password-dialog.c |    6 +++++-
 3 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 016f3e7..cfc1931 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-03-23  David King  <davidk openismus com>
+
+	Drop GTK+ requirement back to 2.10
+
+	* libepc-ui/password-dialog.c: Wrap gtk_widget_get_visible() call in
+	an ifdef, so that a newer version of GTK+ is not required.
+	* configure.ac: Drop GTK+ requirement to 2.10.
+
 2010-03-07  Andre Klapper  <a9016009 gmx de>
 
 	Replace deprecated GTK_WIDGET_VISIBLE, fixing bug #612108
diff --git a/configure.ac b/configure.ac
index fc48bb2..e87be7c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,7 +48,7 @@ PKG_CHECK_MODULES(LIBEPC,    [avahi-client >= 0.6
                               gobject-2.0  >= 2.4
                               gnutls       >= 1.4
                               uuid         >= 1.36])
-PKG_CHECK_MODULES(LIBEPC_UI, [gtk+-2.0     >= 2.18])
+PKG_CHECK_MODULES(LIBEPC_UI, [gtk+-2.0     >= 2.10])
 
 PKG_CHECK_MODULES(LIBSOUP,   [libsoup-2.4  >= 2.3],
                              [LIBSOUP_API=2.4],[
diff --git a/libepc-ui/password-dialog.c b/libepc-ui/password-dialog.c
index 80c2f1e..f9568a9 100644
--- a/libepc-ui/password-dialog.c
+++ b/libepc-ui/password-dialog.c
@@ -404,7 +404,11 @@ gboolean
 epc_password_dialog_get_anonymous_allowed (EpcPasswordDialog *self)
 {
   g_return_val_if_fail (EPC_IS_PASSWORD_DIALOG (self), FALSE);
-  return gtk_widget_get_visible (self->priv->anonymous);
+#if GTK_CHECK_VERSION (2, 19, 7)
+    return gtk_widget_get_visible (self->priv->anonymous);
+#else
+    return GTK_WIDGET_VISIBLE (self->priv->anonymous);
+#endif
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]