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. --- mail/mail-send-recv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mail/mail-send-recv.c') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 1f2ee35a84..d66f2ab508 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -977,7 +977,11 @@ mail_send_receive (GtkWindow *parent) GList *scan; if (send_recv_dialog != NULL) { +#if GTK_CHECK_VERSION(2,19,7) + if (parent != NULL && gtk_widget_get_realized (send_recv_dialog)) { +#else if (parent != NULL && GTK_WIDGET_REALIZED (send_recv_dialog)) { +#endif gdk_window_show (send_recv_dialog->window); gdk_window_raise (send_recv_dialog->window); } -- cgit v1.2.3