aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@src.gnome.org>2000-06-23 01:24:17 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-06-23 01:24:17 +0800
commita3a3ee2b1456314989686ed356108b7356c0a272 (patch)
tree437bbf0e9af949208d07b547f852f377585f2f8e /calendar/gui/e-week-view.c
parentc14e8dd705e3483f2b0cf1fec2d754637d66b062 (diff)
downloadgsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.tar.gz
gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.tar.zst
gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.zip
Sync - Federico
svn path=/trunk/; revision=3693
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 2869847299..db27ef3404 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2451,7 +2451,8 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
event->ico->summary = text;
- gnome_calendar_update_object (week_view->calendar, event->ico);
+ if (!cal_client_update_object (week_view->calendar->client, event->ico))
+ g_message ("e_week_view_on_editing_stopped(): Could not update the object!");
}
@@ -2606,7 +2607,9 @@ e_week_view_key_press (GtkWidget *widget, GdkEventKey *event)
g_warning ("Couldn't find event to start editing.\n");
}
- gnome_calendar_update_object (week_view->calendar, ico);
+ if (!cal_client_update_object (week_view->calendar->client, ico))
+ g_message ("e_week_view_key_press(): Could not update the object!");
+
ical_object_unref (ico);
return TRUE;
@@ -2739,7 +2742,9 @@ e_week_view_on_delete_occurrence (GtkWidget *widget, gpointer data)
ico = ical_object_duplicate (event->ico);
ical_object_add_exdate (ico, event->start);
- gnome_calendar_update_object (week_view->calendar, ico);
+ if (!cal_client_update_object (week_view->calendar->client, ico))
+ g_message ("e_week_view_on_delete_occurrence(): Could not update the object!");
+
ical_object_unref (ico);
}
@@ -2758,7 +2763,8 @@ e_week_view_on_delete_appointment (GtkWidget *widget, gpointer data)
event = &g_array_index (week_view->events, EWeekViewEvent,
week_view->popup_event_num);
- gnome_calendar_remove_object (week_view->calendar, event->ico);
+ if (!cal_client_remove_object (week_view->calendar->client, event->ico->uid))
+ g_message ("e_week_view_on_delete_appointment(): Could not remove the object!");
}
@@ -2795,10 +2801,14 @@ e_week_view_on_unrecur_appointment (GtkWidget *widget, gpointer data)
/* Now update both iCalObjects. Note that we do this last since at
present the updates happen synchronously so our event may disappear.
*/
- gnome_calendar_update_object (week_view->calendar, ico);
+ if (!cal_client_update_object (week_view->calendar->client, ico))
+ g_message ("e_week_view_on_unrecur_appointment(): Could not update the object!");
+
ical_object_unref (ico);
- gnome_calendar_update_object (week_view->calendar, new_ico);
+ if (!cal_client_update_object (week_view->calendar->client, new_ico))
+ g_message ("e_week_view_on_unrecur_appointment(): Could not update the object!");
+
ical_object_unref (new_ico);
}