[evolution-data-server/account-mgmt: 30/39] Adapt ENameSelectorList to the new ESource API.



commit 3fab69cde6e42c63580d70ca29703483126091b4
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Dec 23 20:34:06 2011 -0500

    Adapt ENameSelectorList to the new ESource API.

 libedataserverui/e-name-selector-list.c |    8 ++++++--
 libedataserverui/e-name-selector-list.h |    2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libedataserverui/e-name-selector-list.c b/libedataserverui/e-name-selector-list.c
index cf1c488..33161ea 100644
--- a/libedataserverui/e-name-selector-list.c
+++ b/libedataserverui/e-name-selector-list.c
@@ -699,7 +699,11 @@ e_name_selector_list_init (ENameSelectorList *list)
 }
 
 ENameSelectorList *
-e_name_selector_list_new (void)
+e_name_selector_list_new (ESourceRegistry *registry)
 {
-	return g_object_new (e_name_selector_list_get_type (), NULL);
+	g_return_val_if_fail (E_IS_SOURCE_REGISTRY (registry), NULL);
+
+	return g_object_new (
+		E_TYPE_NAME_SELECTOR_LIST,
+		"registry", registry, NULL);
 }
diff --git a/libedataserverui/e-name-selector-list.h b/libedataserverui/e-name-selector-list.h
index 1e0bca9..c863eab 100644
--- a/libedataserverui/e-name-selector-list.h
+++ b/libedataserverui/e-name-selector-list.h
@@ -68,7 +68,7 @@ struct _ENameSelectorListClass {
 
 GType		e_name_selector_list_get_type	(void);
 ENameSelectorList *
-		e_name_selector_list_new	(void);
+		e_name_selector_list_new	(ESourceRegistry *registry);
 void		e_name_selector_list_expand_clicked
 						(ENameSelectorList *list);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]