Adapt ENameSelectorList to the new ESource API.
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 24 Dec 2011 01:34:06 +0000 (20:34 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sun, 3 Jun 2012 23:51:09 +0000 (19:51 -0400)
libedataserverui/e-name-selector-list.c
libedataserverui/e-name-selector-list.h

index ce38e5f..33161ea 100644 (file)
@@ -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);
 }
index 1e0bca9..c863eab 100644 (file)
@@ -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);