Revision 18320,
1009 bytes
checked in by ghudson, 22 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r18319,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #include "config.h" |
---|
2 | #include <string.h> |
---|
3 | |
---|
4 | #include <bonobo/bonobo-shlib-factory.h> |
---|
5 | #include "bonobo-moniker-extra.h" |
---|
6 | |
---|
7 | static BonoboObject * |
---|
8 | bonobo_extra_moniker_factory (BonoboGenericFactory *this, |
---|
9 | const char *object_id, |
---|
10 | void *data) |
---|
11 | { |
---|
12 | g_return_val_if_fail (object_id != NULL, NULL); |
---|
13 | |
---|
14 | if (!strcmp (object_id, "OAFIID:GNOME_Moniker_Config")) { |
---|
15 | return BONOBO_OBJECT (bonobo_moniker_simple_new ( |
---|
16 | "config:", bonobo_moniker_config_resolve)); |
---|
17 | |
---|
18 | } else if (!strcmp (object_id, "OAFIID:GNOME_Moniker_ConfIndirect")) { |
---|
19 | return BONOBO_OBJECT (bonobo_moniker_simple_new ( |
---|
20 | "conf_indirect:", bonobo_moniker_conf_indirect_resolve)); |
---|
21 | |
---|
22 | } else |
---|
23 | g_warning ("Failing to manufacture a '%s'", object_id); |
---|
24 | |
---|
25 | return NULL; |
---|
26 | } |
---|
27 | |
---|
28 | BONOBO_ACTIVATION_SHLIB_FACTORY ("OAFIID:GNOME_Moniker_std_Factory", |
---|
29 | "Extra bonobo moniker", |
---|
30 | bonobo_extra_moniker_factory, NULL); |
---|
Note: See
TracBrowser
for help on using the repository browser.