From eb1b03faa88703571b5607b4462ab4ef17fe74ff Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 5 Jan 2004 10:30:30 +0000 Subject: removed redundant functions. (update_uris_for_selection): dont call above 2004-01-04 Rodrigo Moya * gui/calendar-component.c (add_uri_for_source, remove_uri_for_source): removed redundant functions. (update_uris_for_selection): dont call above functions, use gnome_calendar_* directly. svn path=/trunk/; revision=24041 --- calendar/ChangeLog | 7 +++++++ calendar/gui/calendar-component.c | 18 +++--------------- 2 files changed, 10 insertions(+), 15 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index b721b38270..1fcc1ead2a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2004-01-04 Rodrigo Moya + + * gui/calendar-component.c (add_uri_for_source, + remove_uri_for_source): removed redundant functions. + (update_uris_for_selection): dont call above functions, use + gnome_calendar_* directly. + 2003-12-29 Kidd Wang * gui/calendar-commands.c (file_open_event_cb): add a menu item diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 2167415d9b..d78af9e6c2 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -79,18 +79,6 @@ extern ECompEditorRegistry *comp_editor_registry; /* Utility functions. */ -static void -add_uri_for_source (ESource *source, GnomeCalendar *calendar) -{ - gnome_calendar_add_event_source (calendar, source); -} - -static void -remove_uri_for_source (ESource *source, GnomeCalendar *calendar) -{ - gnome_calendar_remove_event_source (calendar, source); -} - static gboolean is_in_selection (GSList *selection, ESource *source) { @@ -155,14 +143,14 @@ update_uris_for_selection (CalendarComponent *calendar_component) ESource *old_selected_source = l->data; if (!is_in_selection (selection, old_selected_source)) - remove_uri_for_source (old_selected_source, priv->calendar); + gnome_calendar_remove_event_source (priv->calendar, old_selected_source); } for (l = selection; l; l = l->next) { ESource *selected_source = l->data; - add_uri_for_source (selected_source, priv->calendar); - uids_selected = g_slist_append (uids_selected, (char *)e_source_peek_uid (selected_source)); + gnome_calendar_add_event_source (priv->calendar, selected_source); + uids_selected = g_slist_append (uids_selected, (char *) e_source_peek_uid (selected_source)); } e_source_selector_free_selection (priv->source_selection); -- cgit