aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client/cal-client.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-11-04 07:38:42 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-11-04 07:38:42 +0800
commite134fc8fe3d78dfc9340b513bc3bbb61631cece4 (patch)
tree3c46bf1ad1104a73f310e61f1fd1ba0eb6e41787 /calendar/cal-client/cal-client.c
parentf3608fedd844044cd739c11b7da9791d68372eb0 (diff)
downloadgsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.tar
gsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.tar.gz
gsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.tar.bz2
gsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.tar.lz
gsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.tar.xz
gsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.tar.zst
gsoc2013-evolution-e134fc8fe3d78dfc9340b513bc3bbb61631cece4.zip
use EConfigListener instead of BonoboConfig.
2002-11-03 Rodrigo Moya <rodrigo@ximian.com> * cal-client/cal-client.c (get_default_uri): use EConfigListener instead of BonoboConfig. * cal-client/cal-client.c: * cal-client/cal-listener.[ch]: * cal-client/query-listener.c: warning free. svn path=/trunk/; revision=18517
Diffstat (limited to 'calendar/cal-client/cal-client.c')
-rw-r--r--calendar/cal-client/cal-client.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c
index 9881a7c032..aa048065f2 100644
--- a/calendar/cal-client/cal-client.c
+++ b/calendar/cal-client/cal-client.c
@@ -25,11 +25,10 @@
#include <gtk/gtksignal.h>
#include <bonobo-activation/bonobo-activation.h>
#include <bonobo/bonobo-exception.h>
-#include <bonobo/bonobo-moniker-util.h>
-#include <bonobo-config/bonobo-config-database.h>
#include <libgnome/gnome-util.h>
#include "e-util/e-component-listener.h"
+#include "e-util/e-config-listener.h"
#include "cal-client-types.h"
#include "cal-client.h"
#include "cal-listener.h"
@@ -552,7 +551,7 @@ cal_set_mode_cb (CalListener *listener,
/* Handle the obj_updated signal from the listener */
static void
-obj_updated_cb (CalListener *listener, const GNOME_Evolution_Calendar_CalObjUID uid, gpointer data)
+obj_updated_cb (CalListener *listener, const CORBA_char *uid, gpointer data)
{
CalClient *client;
@@ -562,7 +561,7 @@ obj_updated_cb (CalListener *listener, const GNOME_Evolution_Calendar_CalObjUID
/* Handle the obj_removed signal from the listener */
static void
-obj_removed_cb (CalListener *listener, const GNOME_Evolution_Calendar_CalObjUID uid, gpointer data)
+obj_removed_cb (CalListener *listener, const CORBA_char *uid, gpointer data)
{
CalClient *client;
@@ -865,31 +864,21 @@ get_fall_back_uri (gboolean tasks)
static char *
get_default_uri (gboolean tasks)
{
- Bonobo_ConfigDatabase db;
+ EConfigListener *db;
char *uri;
- CORBA_Environment ev;
- CORBA_exception_init (&ev);
-
- db = bonobo_get_object ("wombat:", "Bonobo/ConfigDatabase", &ev);
+ db = e_config_listener_new ();
- if (BONOBO_EX (&ev) || db == CORBA_OBJECT_NIL) {
- CORBA_exception_free (&ev);
- return NULL;
- }
-
if (tasks)
- uri = bonobo_config_get_string (db, "/DefaultFolders/tasks_uri", &ev);
+ uri = e_config_listener_get_string (db, "/apps/Evolution/DefaultFolders/tasks_uri");
else
- uri = bonobo_config_get_string (db, "/DefaultFolders/calendar_uri", &ev);
- bonobo_object_release_unref (db, NULL);
+ uri = e_config_listener_get_string (db, "/apps/Evolution/DefaultFolders/calendar_uri");
+ g_object_unref (G_OBJECT (db));
- if (BONOBO_EX (&ev)) {
- CORBA_exception_free (&ev);
+ if (!uri)
uri = get_fall_back_uri (tasks);
- } else {
+ else
uri = cal_util_expand_uri (uri, tasks);
- }
return uri;
}