diff options
author | Chris Toshok <toshok@ximian.com> | 2004-01-22 05:23:30 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-01-22 05:23:30 +0800 |
commit | a455e65d39a3c9c2c7e95de44fd12d85d2761195 (patch) | |
tree | b2c275611f8f54e5356b1cdc2d6f2aa31bab45a2 /addressbook/gui/component/addressbook-component.c | |
parent | 69c5b58a835f3a39916e9d6441acd60f6944fb79 (diff) | |
download | gsoc2013-evolution-a455e65d39a3c9c2c7e95de44fd12d85d2761195.tar.gz gsoc2013-evolution-a455e65d39a3c9c2c7e95de44fd12d85d2761195.tar.zst gsoc2013-evolution-a455e65d39a3c9c2c7e95de44fd12d85d2761195.zip |
new function.
2004-01-21 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook-component.c
(addressbook_component_peek_gconf_client): new function.
* gui/component/addressbook-component.h: add prototype for
addressbook_component_peek_gconf_client.
* gui/component/addressbook-migrate.c
(migrate_completion_folders): more gross hacking. migrate the
completion settings.
(get_source_by_uri): function to search for an ESource given the
entire uri. used for migrate_completion_folders.
(migrate_ldap_servers): get_string_value -> get_string_child.
same with get_integer_child.
(get_string_child): rename to make it apparent it's a child, not a
property.
(get_integer_child): same.
(addressbook_migrate): call migrate_completion_folders.
svn path=/trunk/; revision=24357
Diffstat (limited to 'addressbook/gui/component/addressbook-component.c')
-rw-r--r-- | addressbook/gui/component/addressbook-component.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index 51a76ceaee..1fa8c67f53 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -478,8 +478,7 @@ addressbook_component_init (AddressbookComponent *component) priv = g_new0 (AddressbookComponentPrivate, 1); - /* EPFIXME: Should use a custom one instead? Also we should add - addressbook_component_peek_gconf_client(). */ + /* EPFIXME: Should use a custom one instead? */ priv->gconf_client = gconf_client_get_default (); priv->source_list = e_source_list_new_for_gconf (priv->gconf_client, @@ -509,6 +508,14 @@ addressbook_component_peek (void) return component; } +GConfClient* +addressbook_component_peek_gconf_client (AddressbookComponent *component) +{ + g_return_val_if_fail (ADDRESSBOOK_IS_COMPONENT (component), NULL); + + return component->priv->gconf_client; +} + const char * addressbook_component_peek_base_directory (AddressbookComponent *component) { |