aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-04-11 00:58:14 +0800
committerDan Winship <danw@src.gnome.org>2002-04-11 00:58:14 +0800
commit6ee39cc8619bf63082159433397875df30180fb1 (patch)
tree4b083f4d0cf306a95bfcc82916df9c341a595932 /calendar/gui/calendar-config.c
parentc5ac2a9e510fa9e53683e4f270c82e0296da8043 (diff)
downloadgsoc2013-evolution-6ee39cc8619bf63082159433397875df30180fb1.tar.gz
gsoc2013-evolution-6ee39cc8619bf63082159433397875df30180fb1.tar.zst
gsoc2013-evolution-6ee39cc8619bf63082159433397875df30180fb1.zip
Use new-and-improved default folder URI config paths.
* cal-client/cal-client.c (get_default_uri): Use new-and-improved default folder URI config paths. * gui/calendar-config.c (calendar_config_{get,set}_default_uri, calendar_config_{get,set}_default_tasks_uri): Remove these. The shell owns this information now. (Weren't being used anyway.) * gui/component-factory.c (get_data_uri): Fix another place that hardcoded tacking foo.ics on to the end of URLs. svn path=/trunk/; revision=16421
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c86
1 files changed, 0 insertions, 86 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 80f7f856d8..0237766ea8 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -45,8 +45,6 @@
typedef struct
{
- gchar *default_uri;
- gchar *default_tasks_uri;
gchar *timezone;
CalWeekdays working_days;
gboolean use_24_hour_format;
@@ -129,26 +127,6 @@ config_read (void)
CORBA_exception_free (&ev);
- CORBA_exception_init (&ev);
- config->default_uri = bonobo_config_get_string (db,
- "/Calendar/DefaultUri", &ev);
- if (BONOBO_USER_EX (&ev, ex_Bonobo_ConfigDatabase_NotFound))
- config->default_uri = NULL;
- else if (BONOBO_EX (&ev))
- g_message ("config_read(): Could not get the /Calendar/DefaultUri");
-
- CORBA_exception_free (&ev);
-
- CORBA_exception_init (&ev);
- config->default_tasks_uri = bonobo_config_get_string (db,
- "/Calendar/DefaultTasksUri", &ev);
- if (BONOBO_USER_EX (&ev, ex_Bonobo_ConfigDatabase_NotFound))
- config->default_tasks_uri = NULL;
- else if (BONOBO_EX (&ev))
- g_message ("config_read(): Could not get the /Calendar/DefaultTasksUri");
-
- CORBA_exception_free (&ev);
-
/* Default to UTC if the timezone is not set or is "". */
config->timezone = bonobo_config_get_string_with_default (db,
"/Calendar/Display/Timezone", "UTC", NULL);
@@ -309,14 +287,6 @@ calendar_config_write (void)
return;
}
- if (config->default_uri)
- bonobo_config_set_string (db, "/Calendar/DefaultUri",
- config->default_uri, NULL);
-
- if (config->default_tasks_uri)
- bonobo_config_set_string (db, "/Calendar/DefaultTasksUri",
- config->default_tasks_uri, NULL);
-
if (config->timezone)
bonobo_config_set_string (db, "/Calendar/Display/Timezone",
config->timezone, NULL);
@@ -422,62 +392,6 @@ calendar_config_write_on_exit (void)
* Calendar Settings.
*/
-/* The default URI is the one that will be used in places where there
- might be some action on a calendar from outside, such as adding
- a meeting request. */
-gchar *
-calendar_config_get_default_uri (void)
-{
- static gchar *default_uri = NULL;
-
- if (config->default_uri)
- return config->default_uri;
-
- if (!default_uri)
- default_uri = g_strdup_printf ("%s/evolution/local/Calendar/calendar.ics",
- g_get_home_dir ());
-
- return default_uri;
-}
-
-/* Sets the default calendar URI */
-void
-calendar_config_set_default_uri (gchar *default_uri)
-{
- g_free (config->default_uri);
-
- if (default_uri && default_uri[0])
- config->default_uri = g_strdup (default_uri);
- else
- config->default_uri = NULL;
-}
-
-gchar *
-calendar_config_get_default_tasks_uri (void)
-{
- static gchar *default_tasks_uri = NULL;
-
- if (config->default_tasks_uri)
- return config->default_tasks_uri;
-
- if (!default_tasks_uri)
- default_tasks_uri = g_strdup_printf ("%s/evolution/local/Tasks/tasks.ics",
- g_get_home_dir ());
-
- return default_tasks_uri;
-}
-
-void
-calendar_config_set_default_tasks_uri (gchar *default_tasks_uri)
-{
- g_free (config->default_tasks_uri);
-
- if (default_tasks_uri && default_tasks_uri[0])
- config->default_tasks_uri = g_strdup (default_tasks_uri);
- else
- config->default_tasks_uri = NULL;
-}
-
/* The current timezone, e.g. "Europe/London". It may be NULL, in which case
you should assume UTC (though Evolution will show the timezone-setting
dialog the next time a calendar or task folder is selected). */