From 499ae51b86891889ffb5fd9954b1f60efcadfed2 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 15 Jun 1999 22:25:15 +0000 Subject: Fixing a segfault when gnomecal is started with --hidden svn path=/trunk/; revision=980 --- calendar/gui/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui') 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; -- cgit