[evolution/gnome-2-30] Fix build break due to GTK+ deprecations.
- From: Bharath Acharya <abharath src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-30] Fix build break due to GTK+ deprecations.
- Date: Tue, 30 Mar 2010 04:27:02 +0000 (UTC)
commit 7c214d64f621de46c6ffd8881e2dcac464bb5038
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Mar 30 09:56:40 2010 +0530
Fix build break due to GTK+ deprecations.
modules/mail/e-mail-shell-sidebar.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-sidebar.c b/modules/mail/e-mail-shell-sidebar.c
index 42376ca..ebe72bf 100644
--- a/modules/mail/e-mail-shell-sidebar.c
+++ b/modules/mail/e-mail-shell-sidebar.c
@@ -196,7 +196,11 @@ guess_screen_width (EMailShellSidebar *sidebar)
GdkRectangle rect;
toplevel = gtk_widget_get_toplevel (widget);
+#if GTK_CHECK_VERSION(2,19,7)
+ if (toplevel && gtk_widget_get_realized (toplevel))
+#else
if (toplevel && GTK_WIDGET_REALIZED (toplevel))
+#endif
monitor = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_window (toplevel));
else {
/* We don't know in which monitor the window manager
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]