aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
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
parent4fcef82e3897d4620511c15030ed6ee18751d063 (diff)
downloadgsoc2013-evolution-499ae51b86891889ffb5fd9954b1f60efcadfed2.tar.gz
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')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/main.c2
-rw-r--r--calendar/main.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index c364bc3fbe..0d9afa0a6f 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+1999-06-16 Anders Carlsson <anders.carlsson@tordata.se>
+
+ * main.c (new_calendar): Realize the toplevel widget when
+ --hidden is passed to gnomecal. This fixes a segfault.
+
1999-06-04 Robert Brady <rwb197@ecs.soton.ac.uk>
* gnome-cal.h, gnome-cal.c: Fix abort() problem with the year view.
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;
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;