aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-table.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2001-07-26 06:56:56 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2001-07-26 06:56:56 +0800
commit959c0e424c5625154dfe778c8d8d851df1524e68 (patch)
tree6d50cc1970f6ea9e5860d946e853e3f3febfdbdc /calendar/gui/e-calendar-table.c
parent8458c070e057e77c1c84b125b3000a408c7dae6f (diff)
downloadgsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar
gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.gz
gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.bz2
gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.lz
gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.xz
gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.tar.zst
gsoc2013-evolution-959c0e424c5625154dfe778c8d8d851df1524e68.zip
check type of component before actually pasting. Deal with VCALENDAR
2001-07-25 Rodrigo Moya <rodrigo@ximian.com> * gui/e-day-view.c (selection_received_cb): check type of component before actually pasting. Deal with VCALENDAR components also (fixes bug #5140) * gui/e-week-view.c (selection_received_cb): ditto * cal-client/cal-client.c (cal_client_update_object): check the return value from cal_component_get_as_string and don't call GNOME_Evolution_Calendar_Cal_updateObjects if NULL svn path=/trunk/; revision=11418
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r--calendar/gui/e-calendar-table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index e24f1d3d2b..999b64d99f 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -1191,6 +1191,8 @@ selection_received (GtkWidget *invisible,
CalComponent *comp;
icalcomponent_kind kind;
+ g_return_if_fail (E_IS_CALENDAR_TABLE (cal_table));
+
if (selection_data->length < 0 ||
selection_data->type != GDK_SELECTION_TYPE_STRING) {
return;