/*
+* Copyright (C) 2007 Marco Barisione <marco@barisione.org>
* Copyright (C) 2008 Collabora Ltd.
*
* This library is free software; you can redistribute it and/or
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
-* Authors: Elliot Fairweather <elliot.fairweather@collabora.co.uk>
+* Authors: Marco Barisione <marco@barisione.org>
+* Elliot Fairweather <elliot.fairweather@collabora.co.uk>
*/
#ifndef __EMPATHY_CONTACT_SELECTOR_H__
#include <gtk/gtk.h>
#include <libempathy/empathy-contact.h>
+#include <libempathy-gtk/empathy-contact-list-store.h>
#define EMPATHY_TYPE_CONTACT_SELECTOR (empathy_contact_selector_get_type ())
#define EMPATHY_CONTACT_SELECTOR(object) (G_TYPE_CHECK_INSTANCE_CAST \
struct _EmpathyContactSelector
{
GtkComboBox parent;
+
+ /*<private>*/
+ gpointer priv;
};
struct _EmpathyContactSelectorClass
};
GType empathy_contact_selector_get_type (void) G_GNUC_CONST;
-EmpathyContactSelector *
-empathy_contact_selector_new (EmpathyContactListStore *store);
-EmpathyContact *
-empathy_contact_selector_get_selected (EmpathyContactSelector *selector);
+GtkWidget * empathy_contact_selector_new (EmpathyContactList *contact_list);
+
+EmpathyContact * empathy_contact_selector_dup_selected (EmpathyContactSelector *selector);
+
+typedef gboolean (*EmpathyContactSelectorFilterFunc) (EmpathyContact *contact, gpointer user_data);
+
+void empathy_contact_selector_set_visible (EmpathyContactSelector *selector,
+ EmpathyContactSelectorFilterFunc func, gpointer user_data);
G_END_DECLS