From 2836a54dd6d61e35d1446f9a23a628064516a309 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 4 Mar 2010 23:38:41 -0500 Subject: Work around recent GTK+ deprecations. --- widgets/misc/e-online-button.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'widgets/misc/e-online-button.c') diff --git a/widgets/misc/e-online-button.c b/widgets/misc/e-online-button.c index 444296dcef..601aaa4117 100644 --- a/widgets/misc/e-online-button.c +++ b/widgets/misc/e-online-button.c @@ -51,7 +51,11 @@ online_button_update_tooltip (EOnlineButton *button) if (e_online_button_get_online (button)) tooltip = ONLINE_TOOLTIP; +#if GTK_CHECK_VERSION(2,19,7) + else if (gtk_widget_get_sensitive (GTK_WIDGET (button))) +#else else if (GTK_WIDGET_SENSITIVE (button)) +#endif tooltip = OFFLINE_TOOLTIP; else tooltip = NETWORK_UNAVAILABLE_TOOLTIP; -- cgit