summaryrefslogtreecommitdiff
path: root/gconf/gconf-internals.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>1999-12-02 01:02:17 +0000
committerHavoc Pennington <hp@src.gnome.org>1999-12-02 01:02:17 +0000
commit8616f9c991b140f80167b9a0187ed046cd474146 (patch)
tree0f5604f0580cee0bfc52415ed75e4c5e2a473a44 /gconf/gconf-internals.c
parent26a900106bc00cc52f0dabb96386fb607588f4db (diff)
downloadgconf-8616f9c991b140f80167b9a0187ed046cd474146.tar.gz
Add local "direct mode" engine; mildly bad hack. This file could use some
1999-12-01 Havoc Pennington <hp@pobox.com> * gconf/gconf.c: Add local "direct mode" engine; mildly bad hack. This file could use some modularization. Still have to make all the methods support the local version. * gconf/Makefile.am (libgconf_la_SOURCES): move gconf-sources.c to the library instead of gconfd (again). * gconf/gconf-internals.c (gconf_handle_oaf_exception): set the GCONF_OAF_ERROR errno * gconf/gconf-error.c: add strerror stuff for those errors. * gconf/gconf-error.h: add oaf error and "this is not a gconfd engine" error.
Diffstat (limited to 'gconf/gconf-internals.c')
-rw-r--r--gconf/gconf-internals.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gconf/gconf-internals.c b/gconf/gconf-internals.c
index ddba32c1..51008da9 100644
--- a/gconf/gconf-internals.c
+++ b/gconf/gconf-internals.c
@@ -21,6 +21,7 @@
#include "gconf-internals.h"
#include "gconf-backend.h"
#include "gconf-schema.h"
+#include <liboaf/oaf.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -2034,29 +2035,29 @@ gconf_handle_oaf_exception(CORBA_Environment* ev, GConfError** err)
OAF_GeneralError* ge = CORBA_exception_value(ev);
if (err)
- *err = gconf_error_new(GCONF_FAILED, _("Object Activation Framework error: %s"), ge->description);
+ *err = gconf_error_new(GCONF_OAF_ERROR, _("%s"), ge->description);
}
else if (strcmp(id,"IDL:OAF/ActivationContext/NotListed:1.0" ) == 0)
{
if (err)
- *err = gconf_error_new(GCONF_FAILED, _("Object Activation Framework error: attempt to remove not-listed object directory"));
+ *err = gconf_error_new(GCONF_OAF_ERROR, _("attempt to remove not-listed OAF object directory"));
}
else if (strcmp(id,"IDL:OAF/ActivationContext/AlreadyListed:1.0" ) == 0)
{
if (err)
- *err = gconf_error_new(GCONF_FAILED, _("Object Activation Framework error: attempt to add already-listed directory"));
+ *err = gconf_error_new(GCONF_OAF_ERROR, _("attempt to add already-listed OAF directory"));
}
else if (strcmp(id,"IDL:OAF/ActivationContext/ParseFailed:1.0") == 0)
{
OAF_ActivationContext_ParseFailed* pe = CORBA_exception_value(ev);
if (err)
- *err = gconf_error_new(GCONF_FAILED, _("Object Activation Framework parse error: %s"), pe->description);
+ *err = gconf_error_new(GCONF_OAF_ERROR, _("OAF parse error: %s"), pe->description);
}
else
{
if (err)
- *err = gconf_error_new(GCONF_FAILED, _("Unknown error in Object Activation Framework"));
+ *err = gconf_error_new(GCONF_OAF_ERROR, _("Unknown OAF error"));
}
CORBA_exception_free(ev);