aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-selector.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:35:35 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:35:35 +0800
commitb34c39368800754c96f552f4aa502e2f0b4ffba2 (patch)
tree2b3646af87ea70eb218552b7ca50b46b7826f009 /libempathy-gtk/empathy-contact-selector.c
parent6908fe9501b74251c2932c88bb9407b5da69805d (diff)
downloadgsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.tar
gsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.tar.gz
gsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.tar.bz2
gsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.tar.lz
gsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.tar.xz
gsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.tar.zst
gsoc2013-empathy-b34c39368800754c96f552f4aa502e2f0b4ffba2.zip
Pass an EmpathyContactList to _new and create the store from that.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2355 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-contact-selector.c')
-rw-r--r--libempathy-gtk/empathy-contact-selector.c8
1 files changed, 6 insertions, 2 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));
}