aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-01-05 18:30:30 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-01-05 18:30:30 +0800
commiteb1b03faa88703571b5607b4462ab4ef17fe74ff (patch)
treea8c693b1da7f34787d51af7a30e463884428793a
parente1ce555abbfc75808df1d509c46e513264067cb6 (diff)
downloadgsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar
gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar.gz
gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar.bz2
gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar.lz
gsoc2013-evolution-eb1b03faa88703571b5607b4462ab4ef17fe74ff.tar.xz
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
-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);