diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-03-14 03:48:21 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-03-14 04:54:14 +0800 |
commit | f767cb847bebc3b9935137076d7e43f44f029029 (patch) | |
tree | 05be3c4fc9a57d87856be19982d007cc10b09c85 /calendar/gui/gnome-cal.h | |
parent | 13dd2b58d5adf127e609af25757c53637f4add07 (diff) | |
download | gsoc2013-evolution-f767cb847bebc3b9935137076d7e43f44f029029.tar.gz gsoc2013-evolution-f767cb847bebc3b9935137076d7e43f44f029029.tar.zst gsoc2013-evolution-f767cb847bebc3b9935137076d7e43f44f029029.zip |
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.
Diffstat (limited to 'calendar/gui/gnome-cal.h')
-rw-r--r-- | calendar/gui/gnome-cal.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 |