]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-selector.h
empathy-call-window.c: update priv->sending_video *before* changing widget's state
[empathy.git] / libempathy-gtk / empathy-contact-selector.h
index b2effd148d11f05fa758e251a2dd7426cf53e0f2..205b9e411466701a2715cef19b98f4d1f012dcef 100644 (file)
@@ -1,4 +1,5 @@
 /*
+*  Copyright (C) 2007 Marco Barisione <marco@barisione.org>
 *  Copyright (C) 2008 Collabora Ltd.
 *
 *  This library is free software; you can redistribute it and/or
@@ -15,7 +16,8 @@
 *  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__
@@ -27,6 +29,7 @@ G_BEGIN_DECLS
 #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 \
@@ -46,6 +49,9 @@ typedef struct _EmpathyContactSelectorClass EmpathyContactSelectorClass;
 struct _EmpathyContactSelector
 {
   GtkComboBox parent;
+
+  /*<private>*/
+  gpointer priv;
 };
 
 struct _EmpathyContactSelectorClass
@@ -54,11 +60,15 @@ 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