aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-table.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-05-16 22:36:56 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-05-16 22:36:56 +0800
commit58c259ace11ebb84e898749e9b47c32e59e206cf (patch)
treea6e6180e30ecf13d6e345e4b83ec1ea4a319c04a /calendar/gui/e-calendar-table.c
parent89140b1640d11748535776c84ab2df4b21052c68 (diff)
downloadgsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.tar
gsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.tar.gz
gsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.tar.bz2
gsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.tar.lz
gsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.tar.xz
gsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.tar.zst
gsoc2013-evolution-58c259ace11ebb84e898749e9b47c32e59e206cf.zip
Fixes #43029
2003-05-15 JP Rosevear <jpr@ximian.com> 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
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r--calendar/gui/e-calendar-table.c15
1 files changed, 3 insertions, 12 deletions
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,