aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-shell-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar/e-cal-shell-view.c')
-rw-r--r--modules/calendar/e-cal-shell-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/calendar/e-cal-shell-view.c b/modules/calendar/e-cal-shell-view.c
index dc717c3951..29d8fd08b1 100644
--- a/modules/calendar/e-cal-shell-view.c
+++ b/modules/calendar/e-cal-shell-view.c
@@ -326,7 +326,8 @@ cal_shell_view_update_actions (EShellView *shell_view)
gtk_widget_hide(item);
scr = gdk_screen_get_default ();
- monitor = gdk_screen_get_monitor_at_window (scr, GTK_WIDGET (shell_window)->window);
+ monitor = gdk_screen_get_monitor_at_window (scr,
+ gtk_widget_get_window (GTK_WIDGET (shell_window)));
gdk_screen_get_monitor_geometry (scr, monitor, &rect);
gtk_window_set_default_size ((GtkWindow *)shell_window, rect.width, rect.height);