diff options
author | JP Rosevear <jpr@ximian.com> | 2003-05-15 02:45:55 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-05-15 02:45:55 +0800 |
commit | 352d3c7d3b080850f4fc81b502a0f0b0d3c2369d (patch) | |
tree | bcf141b2a6e60c5382ab04c1fd439c9319556ad0 /calendar/gui/e-week-view.c | |
parent | 0203f5de7608f34c6510948b36f522c4c3a87fef (diff) | |
download | gsoc2013-evolution-352d3c7d3b080850f4fc81b502a0f0b0d3c2369d.tar.gz gsoc2013-evolution-352d3c7d3b080850f4fc81b502a0f0b0d3c2369d.tar.zst gsoc2013-evolution-352d3c7d3b080850f4fc81b502a0f0b0d3c2369d.zip |
guard against multiple destroys
2003-05-14 JP Rosevear <jpr@ximian.com>
* gui/e-tasks.c (e_tasks_destroy): guard against multiple destroys
* cal-client/cal-client.c (cal_client_finalize): unref the
bonobo listener
* gui/gnome-cal.c (gnome_calendar_destroy): guard against multiple
destroy calls
* gui/e-week-view.c (e_week_view_init): connect after destroy
(invisible_destroyed): don't unref, its already destroyed
* gui/e-day-view.c (e_day_view_init): connect after destroy
(invisible_destroyed): don't unref, its already destroyed
* gui/e-calendar-table.c (e_calendar_table_class_init): make sure
we set the parent class
(e_calendar_table_init): connect after the destroy handler runs
(e_calendar_table_destroy): guard against multiple destroys
(invisible_destroyed): don't unref the invisible, its already
being destroyed
* gui/calendar-offline-handler.c (backend_cal_set_mode): unref the
client, we are done with it now
(backend_cal_opened_online): ditto
(impl_dispose): unref our main client
* gui/calendar-commands.c (control_util_set_folder_bar_label):
release/unref the shell view once we are done with it
(control_util_show_settings): ditto
svn path=/trunk/; revision=21180
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 406a3876d1..2ca52c8ca7 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -434,8 +434,8 @@ e_week_view_init (EWeekView *week_view) G_CALLBACK (selection_clear_event), (gpointer) week_view); g_signal_connect (week_view->invisible, "selection_received", G_CALLBACK (selection_received), (gpointer) week_view); - g_signal_connect (week_view->invisible, "destroy", - G_CALLBACK (invisible_destroyed), (gpointer) week_view); + g_signal_connect_after (week_view->invisible, "destroy", + G_CALLBACK (invisible_destroyed), (gpointer) week_view); week_view->clipboard_selection = NULL; @@ -4220,7 +4220,6 @@ e_week_view_get_time_string_width (EWeekView *week_view) static void invisible_destroyed (GtkWidget *invisible, EWeekView *week_view) { - gtk_object_unref (GTK_OBJECT (week_view->invisible)); week_view->invisible = NULL; } |