aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/calendar-component.c18
2 files changed, 10 insertions, 15 deletions
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 <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.
+
2003-12-29 Kidd Wang <kidd.wang@sun.com>
* 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);