source:
trunk/third/libgnome/monikers/bonobo-moniker-config.c
@
18320
Revision 18320, 962 bytes checked in by ghudson, 22 years ago (diff) |
---|
Line | |
---|---|
1 | /* |
2 | * gnome-moniker-config.c: GConf Moniker implementation |
3 | * |
4 | * This is the GConf based Moniker implementation. |
5 | * |
6 | * Author: |
7 | * Rodrigo Moya (rodrigo@gnome-db.org) |
8 | */ |
9 | |
10 | #include <string.h> |
11 | #include <bonobo/bonobo-exception.h> |
12 | #include "bonobo-config-bag.h" |
13 | #include "bonobo-moniker-extra.h" |
14 | |
15 | Bonobo_Unknown |
16 | bonobo_moniker_config_resolve (BonoboMoniker *moniker, |
17 | const Bonobo_ResolveOptions *options, |
18 | const CORBA_char *requested_interface, |
19 | CORBA_Environment *ev) |
20 | { |
21 | const gchar *name; |
22 | |
23 | name = bonobo_moniker_get_name (moniker); |
24 | |
25 | if (!strcmp (requested_interface, "IDL:Bonobo/PropertyBag:1.0")) { |
26 | BonoboConfigBag *bag; |
27 | |
28 | bag = bonobo_config_bag_new (name); |
29 | if (bag) { |
30 | return (Bonobo_Unknown) CORBA_Object_duplicate ( |
31 | BONOBO_OBJREF (bag), ev); |
32 | } |
33 | |
34 | bonobo_exception_set (ev, ex_Bonobo_Moniker_InterfaceNotFound); |
35 | } |
36 | else |
37 | bonobo_exception_set (ev, ex_Bonobo_Moniker_InterfaceNotFound); |
38 | |
39 | return CORBA_OBJECT_NIL; |
40 | } |
Note: See TracBrowser
for help on using the repository browser.