[evolution-exchange] Work around recent GTK+ deprecations.



commit 219caa89d09b7604ec4e5912e4d187aebf2a09ae
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Mar 4 23:07:18 2010 -0500

    Work around recent GTK+ deprecations.

 eplugin/exchange-permissions-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/eplugin/exchange-permissions-dialog.c b/eplugin/exchange-permissions-dialog.c
index 5e906c2..2a43973 100644
--- a/eplugin/exchange-permissions-dialog.c
+++ b/eplugin/exchange-permissions-dialog.c
@@ -642,7 +642,11 @@ display_permissions (ExchangePermissionsDialog *dialog)
 				      perms & E2K_PERMISSION_OWNER);
 	gtk_toggle_button_set_active (dialog->priv->folder_contact_check,
 				      (perms & E2K_PERMISSION_CONTACT) &&
+#if GTK_CHECK_VERSION(2,19,7)
+				      gtk_widget_get_sensitive (GTK_WIDGET (dialog->priv->folder_contact_check)));
+#else
 				      GTK_WIDGET_SENSITIVE (dialog->priv->folder_contact_check));
+#endif
 	gtk_toggle_button_set_active (dialog->priv->folder_visible_check,
 				      perms & E2K_PERMISSION_FOLDER_VISIBLE);
 



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