]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-chooser.h
Center the 'smiley images' inside the menu items
[empathy.git] / libempathy-gtk / empathy-contact-chooser.h
index 5af938d5d9a7cde4d4124b3b7051cff2babda370..fa1c703a82af6d3f540247c88637837ab8dd3b96 100644 (file)
 #define __EMPATHY_CONTACT_CHOOSER_H__
 
 #include <gtk/gtk.h>
-
-#include <telepathy-glib/account.h>
-
-#include "libempathy/empathy-tp-chat.h"
+#include <folks/folks.h>
 
 G_BEGIN_DECLS
 
@@ -31,6 +28,13 @@ typedef struct _EmpathyContactChooser EmpathyContactChooser;
 typedef struct _EmpathyContactChooserClass EmpathyContactChooserClass;
 typedef struct _EmpathyContactChooserPrivate EmpathyContactChooserPrivate;
 
+typedef gboolean (*EmpathyContactChooserFilterFunc) (
+    EmpathyContactChooser *self,
+    FolksIndividual *individual,
+    gboolean is_online,
+    gboolean searching,
+    gpointer user_data);
+
 struct _EmpathyContactChooser
 {
   GtkBox parent;
@@ -45,11 +49,21 @@ struct _EmpathyContactChooserClass
 
 GType empathy_contact_chooser_get_type (void);
 
-GtkWidget * empathy_contact_chooser_new (EmpathyTpChat *tp_chat);
+GtkWidget * empathy_contact_chooser_new (void);
 
-TpContact * empathy_contact_chooser_get_selected (
+FolksIndividual * empathy_contact_chooser_dup_selected (
     EmpathyContactChooser *self);
 
+void empathy_contact_chooser_set_filter_func (EmpathyContactChooser *self,
+    EmpathyContactChooserFilterFunc func,
+    gpointer user_data);
+
+void empathy_contact_chooser_show_search_entry (EmpathyContactChooser *self,
+    gboolean show);
+
+void empathy_contact_chooser_show_tree_view (EmpathyContactChooser *self,
+    gboolean show);
+
 G_END_DECLS
 
 #endif