]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-persona-view.h
Merge branch 'sasl'
[empathy.git] / libempathy-gtk / empathy-persona-view.h
index 11fe039eb81fed122e80102336a7a29801254503..0a6317c6b0e88562e271050932e8c9e357c10065 100644 (file)
 
 G_BEGIN_DECLS
 
+typedef enum
+{
+  EMPATHY_PERSONA_VIEW_FEATURE_NONE = 0,
+  EMPATHY_PERSONA_VIEW_FEATURE_PERSONA_DRAG = 1 << 0,
+  EMPATHY_PERSONA_VIEW_FEATURE_PERSONA_DROP = 1 << 1,
+  EMPATHY_PERSONA_VIEW_FEATURE_ALL = (1 << 2) - 1,
+} EmpathyPersonaViewFeatureFlags;
+
 #define EMPATHY_TYPE_PERSONA_VIEW (empathy_persona_view_get_type ())
 #define EMPATHY_PERSONA_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), \
     EMPATHY_TYPE_PERSONA_VIEW, EmpathyPersonaView))
@@ -57,11 +65,16 @@ typedef struct
 typedef struct
 {
   GtkTreeViewClass parent_class;
+
+  void (* drag_individual_received) (EmpathyPersonaView *self,
+      GdkDragAction action,
+      FolksIndividual *individual);
 } EmpathyPersonaViewClass;
 
 GType empathy_persona_view_get_type (void) G_GNUC_CONST;
 
-EmpathyPersonaView *empathy_persona_view_new (EmpathyPersonaStore *store);
+EmpathyPersonaView *empathy_persona_view_new (EmpathyPersonaStore *store,
+    EmpathyPersonaViewFeatureFlags features);
 
 FolksPersona *empathy_persona_view_dup_selected (EmpathyPersonaView *self);