aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
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;