diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-selector.c | 8 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-selector.h | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c index cfd1f733a..df5384ace 100644 --- a/libempathy-gtk/empathy-contact-selector.c +++ b/libempathy-gtk/empathy-contact-selector.c @@ -308,9 +308,13 @@ empathy_contact_selector_class_init (EmpathyContactSelectorClass *klass) /* public methods */ GtkWidget * -empathy_contact_selector_new (EmpathyContactListStore *store) +empathy_contact_selector_new (EmpathyContactList *contact_list) { - g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST_STORE (store), NULL); + EmpathyContactListStore *store; + + g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST (contact_list), NULL); + + store = empathy_contact_list_store_new (contact_list); return GTK_WIDGET (g_object_new (EMPATHY_TYPE_CONTACT_SELECTOR, "store", store, NULL)); } diff --git a/libempathy-gtk/empathy-contact-selector.h b/libempathy-gtk/empathy-contact-selector.h index 238cbbbb9..d766c5a62 100644 --- a/libempathy-gtk/empathy-contact-selector.h +++ b/libempathy-gtk/empathy-contact-selector.h @@ -59,7 +59,7 @@ struct _EmpathyContactSelectorClass GType empathy_contact_selector_get_type (void) G_GNUC_CONST; GtkWidget * -empathy_contact_selector_new (EmpathyContactListStore *store); +empathy_contact_selector_new (EmpathyContactList *contact_list); EmpathyContact * empathy_contact_selector_get_selected (EmpathyContactSelector *selector); |