From 58c259ace11ebb84e898749e9b47c32e59e206cf Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 16 May 2003 14:36:56 +0000 Subject: Fixes #43029 2003-05-15 JP Rosevear Fixes #43029 * gui/e-week-view.c (e_week_view_init): don't listen for destroy signal (e_week_view_destroy): check for NULL and make invisible NULL after we destroy it, unref cursors and NULL them out as well, guard against freeing events multiple times * gui/e-day-view.c (e_day_view_destroy): check for NULL and make invisible NULL after we destroy it, unref cursors and NULL them out as well, guard against freeing events multiple times (e_day_view_init): don't listen for destroy signal * gui/e-calendar-table.c (e_calendar_table_init): don't listen for destroy signal (e_calendar_table_destroy): check for NULL and make invisible NULL after we destroy it svn path=/trunk/; revision=21208 --- calendar/gui/e-calendar-table.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'calendar/gui/e-calendar-table.c') diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index 6f31455fb8..c55875d943 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -109,8 +109,6 @@ static void selection_get (GtkWidget *invisible, guint info, guint time_stamp, ECalendarTable *cal_table); -static void invisible_destroyed (GtkWidget *invisible, - ECalendarTable *cal_table); static struct tm e_calendar_table_get_current_time (ECellDateEdit *ecde, gpointer data); static void mark_row_complete_cb (int model_row, gpointer data); @@ -534,8 +532,6 @@ e_calendar_table_init (ECalendarTable *cal_table) G_CALLBACK (selection_clear_event), cal_table); g_signal_connect (cal_table->invisible, "selection_received", G_CALLBACK (selection_received), cal_table); - g_signal_connect_after (cal_table->invisible, "destroy", - G_CALLBACK (invisible_destroyed), cal_table); cal_table->clipboard_selection = NULL; } @@ -588,8 +584,10 @@ e_calendar_table_destroy (GtkObject *object) cal_table->model = NULL; } - if (cal_table->invisible) + if (cal_table->invisible) { gtk_widget_destroy (cal_table->invisible); + cal_table->invisible = NULL; + } if (cal_table->clipboard_selection) { g_free (cal_table->clipboard_selection); cal_table->clipboard_selection = NULL; @@ -1174,13 +1172,6 @@ e_calendar_table_save_state (ECalendarTable *cal_table, filename); } - -static void -invisible_destroyed (GtkWidget *invisible, ECalendarTable *cal_table) -{ - cal_table->invisible = NULL; -} - static void selection_get (GtkWidget *invisible, GtkSelectionData *selection_data, -- cgit v1.2.3