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



commit a85d89a34acde8e493b567a616df2f749e816357
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 ce38e5f..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_TYPE_NAME_SELECTOR_LIST, 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]