aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-preferences.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-10-30 05:03:46 +0800
committerIain Holmes <iain@src.gnome.org>2001-10-30 05:03:46 +0800
commit1330f756790b9654bf27692d9484f9b06b37c874 (patch)
treeaf93379d7d89f56e32c778522c2be52cb1a7fc6e /my-evolution/e-summary-preferences.c
parent61e63e21439e300c3dc25affad1c8f3203f169d6 (diff)
downloadgsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.tar
gsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.tar.gz
gsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.tar.bz2
gsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.tar.lz
gsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.tar.xz
gsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.tar.zst
gsoc2013-evolution-1330f756790b9654bf27692d9484f9b06b37c874.zip
Save the RDFs into a new place
Only have one place for initialisation of rdf/weather stations. svn path=/trunk/; revision=14362
Diffstat (limited to 'my-evolution/e-summary-preferences.c')
-rw-r--r--my-evolution/e-summary-preferences.c32
1 files changed, 10 insertions, 22 deletions
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c
index 8e1b590af9..e4d781deb2 100644
--- a/my-evolution/e-summary-preferences.c
+++ b/my-evolution/e-summary-preferences.c
@@ -62,31 +62,13 @@ make_initial_mail_list (ESummaryPrefs *prefs)
static void
make_initial_rdf_list (ESummaryPrefs *prefs)
{
- GList *rdfs;
-
- rdfs = g_list_prepend (NULL, g_strdup ("http://news.gnome.org/gnome-news/rdf"));
-
- prefs->rdf_urls = rdfs;
+ prefs->rdf_urls = NULL;
}
static void
make_initial_weather_list (ESummaryPrefs *prefs)
{
- /* translators: Put here a list of codes for locations you want to
- see in My Evolution by default. You can find the list of all
- stations and their codes in Evolution sources
- (evolution/my-evolution/Locations) */
- char *default_stations = _("KBOS"), **stations_v, **p;
- GList *stations = NULL;
-
- stations_v = g_strsplit (default_stations, ":", 0);
- g_assert (stations_v != NULL);
- for (p = stations_v; *p != NULL; p++) {
- stations = g_list_prepend (stations, *p);
- }
- g_free (stations_v);
-
- prefs->stations = g_list_reverse (stations);
+ prefs->stations = NULL;
}
/* Load the prefs off disk */
@@ -501,7 +483,7 @@ save_known_rdfs (GList *rdfs)
FILE *handle;
char *rdf_file;
- rdf_file = gnome_util_prepend_user_home ("evolution/config/RDF-urls.txt");
+ rdf_file = gnome_util_prepend_user_home ("evolution/RDF-urls.txt");
handle = fopen (rdf_file, "w");
g_free (rdf_file);
@@ -531,9 +513,15 @@ fill_rdf_all_clist (GtkCList *clist,
int i;
char *rdf_file, line[4096];
- rdf_file = gnome_util_prepend_user_home ("evolution/config/RDF-urls.txt");
+ rdf_file = gnome_util_prepend_user_home ("evolution/RDF-urls.txt");
handle = fopen (rdf_file, "r");
g_free (rdf_file);
+ if (handle == NULL) {
+ /* Open the old location just so that users data isn't lost */
+ rdf_file = gnome_util_prepend_user_home ("evolution/config/RDF-urls.txt");
+ handle = fopen (rdf_file, "r");
+ g_free (rdf_file);
+ }
if (handle == NULL) {
for (i = 0; rdfs[i].url; i++) {