aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-11-04 06:37:16 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-11-04 06:37:16 +0800
commit10e1916bafe73cc9a232499d566786f7c412c271 (patch)
tree89c2119fa2a19a8313f4626624eebc6ae1d91fbd /calendar/pcs
parent4adcdd069dc896b77b555e06da64a5c81d1bfc06 (diff)
downloadgsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.tar
gsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.tar.gz
gsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.tar.bz2
gsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.tar.lz
gsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.tar.xz
gsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.tar.zst
gsoc2013-evolution-10e1916bafe73cc9a232499d566786f7c412c271.zip
don't use BonoboConfig, but EConfigListener.
2002-11-03 Rodrigo Moya <rodrigo@ximian.com> * pcs/cal-backend-util.[ch]: don't use BonoboConfig, but EConfigListener. * gui/calendar-config.c: use /apps/Evolution prefix for all configuration keys. svn path=/trunk/; revision=18515
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal-backend-util.c20
-rw-r--r--calendar/pcs/cal-backend-util.h8
2 files changed, 14 insertions, 14 deletions
diff --git a/calendar/pcs/cal-backend-util.c b/calendar/pcs/cal-backend-util.c
index 6ae480e30b..a63a2b319c 100644
--- a/calendar/pcs/cal-backend-util.c
+++ b/calendar/pcs/cal-backend-util.c
@@ -53,7 +53,7 @@ cal_backend_util_fill_alarm_instances_seq (GNOME_Evolution_Calendar_CalAlarmInst
}
void
-cal_backend_mail_account_get (Bonobo_ConfigDatabase db,
+cal_backend_mail_account_get (EConfigListener *db,
gint def,
char **address,
char **name)
@@ -64,17 +64,17 @@ cal_backend_mail_account_get (Bonobo_ConfigDatabase db,
*name = NULL;
/* get the identity info */
- path = g_strdup_printf ("/Mail/Accounts/identity_name_%d", def);
- *name = bonobo_config_get_string (db, path, NULL);
+ path = g_strdup_printf ("/apps/Evolution/Mail/Accounts/identity_name_%d", def);
+ *name = e_config_listener_get_string_with_default (db, path, NULL, NULL);
g_free (path);
- path = g_strdup_printf ("/Mail/Accounts/identity_address_%d", def);
- *address = bonobo_config_get_string (db, path, NULL);
+ path = g_strdup_printf ("/apps/Evolution/Mail/Accounts/identity_address_%d", def);
+ *address = e_config_listener_get_string_with_default (db, path, NULL, NULL);
g_free (path);
}
gboolean
-cal_backend_mail_account_get_default (Bonobo_ConfigDatabase db,
+cal_backend_mail_account_get_default (EConfigListener *db,
char **address,
char **name)
{
@@ -83,8 +83,8 @@ cal_backend_mail_account_get_default (Bonobo_ConfigDatabase db,
*address = NULL;
*name = NULL;
- len = bonobo_config_get_long_with_default (db, "/Mail/Accounts/num", 0, NULL);
- def = bonobo_config_get_long_with_default (db, "/Mail/Accounts/default_account", 0, NULL);
+ len = e_config_listener_get_long_with_default (db, "/apps/Evolution/Mail/Accounts/num", 0, NULL);
+ def = e_config_listener_get_long_with_default (db, "/apps/Evolution/Mail/Accounts/default_account", 0, NULL);
if (def < len)
cal_backend_mail_account_get (db, def, address, name);
@@ -95,12 +95,12 @@ cal_backend_mail_account_get_default (Bonobo_ConfigDatabase db,
}
gboolean
-cal_backend_mail_account_is_valid (Bonobo_ConfigDatabase db, char *user, char **name)
+cal_backend_mail_account_is_valid (EConfigListener *db, char *user, char **name)
{
gchar *address;
glong len, i;
- len = bonobo_config_get_long_with_default (db, "/Mail/Accounts/num", 0, NULL);
+ len = e_config_listener_get_long_with_default (db, "/apps/Evolution/Mail/Accounts/num", 0, NULL);
for (i = 0; i < len; i++) {
cal_backend_mail_account_get (db, i, &address, name);
diff --git a/calendar/pcs/cal-backend-util.h b/calendar/pcs/cal-backend-util.h
index 6e9f48a8c6..20c07f0799 100644
--- a/calendar/pcs/cal-backend-util.h
+++ b/calendar/pcs/cal-backend-util.h
@@ -23,7 +23,7 @@
#ifndef CAL_BACKEND_UTIL_H
#define CAL_BACKEND_UTIL_H
-#include <bonobo-config/bonobo-config-database.h>
+#include <e-util/e-config-listener.h>
#include <pcs/cal-backend.h>
G_BEGIN_DECLS
@@ -39,11 +39,11 @@ void cal_backend_util_fill_alarm_instances_seq (
* Functions for accessing mail configuration
*/
-void cal_backend_mail_account_get (Bonobo_ConfigDatabase db, gint def,
+void cal_backend_mail_account_get (EConfigListener *db, gint def,
char **address, char **name);
-gboolean cal_backend_mail_account_get_default (Bonobo_ConfigDatabase db,
+gboolean cal_backend_mail_account_get_default (EConfigListener *db,
char **address, char **name);
-gboolean cal_backend_mail_account_is_valid (Bonobo_ConfigDatabase db,
+gboolean cal_backend_mail_account_is_valid (EConfigListener *db,
char *user, char **name);
G_END_DECLS