diff options
Diffstat (limited to 'calendar/gui/main.c')
-rw-r--r-- | calendar/gui/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c index dd26a87c87..2167d026f3 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/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; |