From f767cb847bebc3b9935137076d7e43f44f029029 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 13 Mar 2010 19:48:21 +0000 Subject: Fix GnomeCalendar lifecycle; not being a widget meant we didn't get a gtk_widget_destroy invocation, which meant we left some callbacks registered, long after our child 'views' were destroyed causing sudden death in update_marcus_bains_line_cb, manipulating views. --- calendar/gui/gnome-cal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'calendar/gui/gnome-cal.h') diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h index 91d80f0c20..b24648e2bc 100644 --- a/calendar/gui/gnome-cal.h +++ b/calendar/gui/gnome-cal.h @@ -85,12 +85,12 @@ typedef enum { } GnomeCalendarGotoDateType; struct _GnomeCalendar { - GtkVBox vbox; + GObject parent; GnomeCalendarPrivate *priv; }; struct _GnomeCalendarClass { - GtkVBoxClass parent_class; + GObjectClass parent_class; /* Notification signals */ void (*dates_shown_changed) (GnomeCalendar *gcal); @@ -114,6 +114,7 @@ struct _GnomeCalendarClass { GType gnome_calendar_get_type (void); GtkWidget * gnome_calendar_new (EShellSettings *shell_settings); +void gnome_calendar_dispose (GnomeCalendar *gcal); EShellSettings *gnome_calendar_get_shell_settings (GnomeCalendar *gcal); ECalendar * gnome_calendar_get_date_navigator -- cgit