diff options
Diffstat (limited to 'calendar/main.c')
-rw-r--r-- | calendar/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/main.c b/calendar/main.c index dd26a87c87..2167d026f3 100644 --- a/calendar/main.c +++ b/calendar/main.c @@ -597,6 +597,8 @@ new_calendar (char *full_name, char *calendar_file, char *geometry, char *page, if (hidden){ GnomeWinState state; + /* Realize the toplevel window to prevent a segfault */ + gtk_widget_realize (toplevel); state = gnome_win_hints_get_state (toplevel); state |= WIN_STATE_MINIMIZED; |