aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@src.gnome.org>1999-06-16 06:25:15 +0800
committerAnders Carlsson <andersca@src.gnome.org>1999-06-16 06:25:15 +0800
commit499ae51b86891889ffb5fd9954b1f60efcadfed2 (patch)
tree2bfd9d817f7b2ad5d7df703c67c27102e2f090ba /calendar/gui
parent4fcef82e3897d4620511c15030ed6ee18751d063 (diff)
downloadgsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar
gsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar.gz
gsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar.bz2
gsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar.lz
gsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar.xz
gsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar.zst
gsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.zip
Fixing a segfault when gnomecal is started with --hidden
svn path=/trunk/; revision=980
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/main.c2
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;