aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-19 02:42:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-19 03:19:34 +0800
commitc3ea33df618adcf49fc4294454e1ea1745544a62 (patch)
treed1e1aa3a0f64699060240817f9b4d31e38dec2b2 /modules/addressbook
parent2c471d12912c2b9666b3a7194831ac9997b72ce0 (diff)
downloadgsoc2013-evolution-c3ea33df618adcf49fc4294454e1ea1745544a62.tar.gz
gsoc2013-evolution-c3ea33df618adcf49fc4294454e1ea1745544a62.tar.zst
gsoc2013-evolution-c3ea33df618adcf49fc4294454e1ea1745544a62.zip
EAddressbookSelector: Inherit from EClientSelector.
Use e_client_selector_get_client() to obtain an EClient.
Diffstat (limited to 'modules/addressbook')
-rw-r--r--modules/addressbook/e-book-shell-sidebar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/addressbook/e-book-shell-sidebar.c b/modules/addressbook/e-book-shell-sidebar.c
index 6e9e3484f9..094e825640 100644
--- a/modules/addressbook/e-book-shell-sidebar.c
+++ b/modules/addressbook/e-book-shell-sidebar.c
@@ -94,7 +94,7 @@ book_shell_sidebar_constructed (GObject *object)
EShellBackend *shell_backend;
EShellSidebar *shell_sidebar;
EShellSettings *shell_settings;
- ESourceRegistry *registry;
+ EClientCache *client_cache;
GtkContainer *container;
GtkWidget *widget;
@@ -123,8 +123,8 @@ book_shell_sidebar_constructed (GObject *object)
container = GTK_CONTAINER (widget);
- registry = e_shell_get_registry (shell);
- widget = e_addressbook_selector_new (registry);
+ client_cache = e_shell_get_client_cache (shell);
+ widget = e_addressbook_selector_new (client_cache);
gtk_container_add (GTK_CONTAINER (container), widget);
priv->selector = g_object_ref (widget);
gtk_widget_show (widget);
@@ -136,7 +136,7 @@ book_shell_sidebar_constructed (GObject *object)
G_BINDING_SYNC_CREATE,
(GBindingTransformFunc) e_binding_transform_uid_to_source,
(GBindingTransformFunc) e_binding_transform_source_to_uid,
- g_object_ref (registry),
+ e_client_cache_ref_registry (client_cache),
(GDestroyNotify) g_object_unref);
}