diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-01-05 18:30:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-01-05 18:30:30 +0800 |
commit | eb1b03faa88703571b5607b4462ab4ef17fe74ff (patch) | |
tree | a8c693b1da7f34787d51af7a30e463884428793a /calendar/gui/calendar-component.c | |
parent | e1ce555abbfc75808df1d509c46e513264067cb6 (diff) | |
download | gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar.gz gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar.zst gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.zip |
removed redundant functions. (update_uris_for_selection): dont call above
2004-01-04 Rodrigo Moya <rodrigo@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r-- | calendar/gui/calendar-component.c | 18 |
1 files changed, 3 insertions, 15 deletions
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); |