aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-06-02 13:48:02 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-06-02 13:48:02 +0800
commit9717e6f9efc0f5acfb0c15e576a703e02c0cd753 (patch)
tree4a265688162e8febcf3adfb8b8c2ead0c525330b /calendar/gui/e-week-view.c
parentad538c17436859d35fb80b6cfc7692b7064f7125 (diff)
downloadgsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.tar
gsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.tar.gz
gsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.tar.bz2
gsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.tar.lz
gsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.tar.xz
gsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.tar.zst
gsoc2013-evolution-9717e6f9efc0f5acfb0c15e576a703e02c0cd753.zip
Implemented. (gnome_calendar_add_object): Removed function, since it was
2000-06-02 Federico Mena Quintero <federico@helixcode.com> * gui/gnome-cal.c (save_ical_object_cb): Implemented. (gnome_calendar_add_object): Removed function, since it was identical to gnome_calendar_update_object(). Modified the rest of the code to use only the latter. (gnome_calendar_remove_object): Be more paranoid about the UID. (gnome_calendar_update_object): Ditto. Also, renamed this function from gnome_calendar_object_changed(), for consistency with the lower-level CalClient interface. * gui/event-editor.c (event_editor_class_init): New "save_ical_object" signal to ask that our parent store the calendar object to the backend. (save_ical_object): New function to save the calendar object, actually if just emits the signal. (file_save_cb): Implemented. (dialog_to_ical_object): We want priv-> alarm_program_run_program_entry (i.e. the entry inside the GnomeFileEntry), not the file entry itself. (dialog_to_ical_object): Only insert the recurrence ending date if the event is recurrent! svn path=/trunk/; revision=3380
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 3dd20e4e48..d756fd7a51 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2371,9 +2371,7 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
event->ico->summary = text;
- /* Notify calendar of change. This will result in a call to update,
- which will reset the event label as appropriate. */
- gnome_calendar_object_changed (week_view->calendar, event->ico);
+ gnome_calendar_update_object (week_view->calendar, event->ico);
}
@@ -2528,8 +2526,7 @@ e_week_view_key_press (GtkWidget *widget, GdkEventKey *event)
g_warning ("Couldn't find event to start editing.\n");
}
- gnome_calendar_add_object (week_view->calendar, ico);
-
+ gnome_calendar_update_object (week_view->calendar, ico);
ical_object_unref (ico);
return TRUE;
@@ -2662,7 +2659,7 @@ 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_object_changed (week_view->calendar, ico);
+ gnome_calendar_update_object (week_view->calendar, ico);
ical_object_unref (ico);
}
@@ -2718,9 +2715,9 @@ 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_object_changed (week_view->calendar, ico);
+ gnome_calendar_update_object (week_view->calendar, ico);
ical_object_unref (ico);
- gnome_calendar_add_object (week_view->calendar, new_ico);
+ gnome_calendar_update_object (week_view->calendar, new_ico);
ical_object_unref (new_ico);
}