diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-25 00:54:26 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-27 17:23:49 +0800 |
commit | 86d76dc3d8e58b52749756f498648307fb513465 (patch) | |
tree | 760331b0eb187af9fa8dfb2ac52cb816ac5cb1ec /libempathy-gtk/empathy-persona-view.h | |
parent | 1337c4e6f42da41d1da84f32586f33812b8ec2b5 (diff) | |
download | gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.tar gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.tar.gz gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.tar.bz2 gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.tar.lz gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.tar.xz gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.tar.zst gsoc2013-empathy-86d76dc3d8e58b52749756f498648307fb513465.zip |
Add drag and drop support to EmpathyPersonaView
This includes an EmpathyPersonaView::drag-individual-received signal, to
allow for notification that an Individual has been dropped onto the view.
Helps: bgo#627715
Diffstat (limited to 'libempathy-gtk/empathy-persona-view.h')
-rw-r--r-- | libempathy-gtk/empathy-persona-view.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-persona-view.h b/libempathy-gtk/empathy-persona-view.h index c7ba61d05..0a6317c6b 100644 --- a/libempathy-gtk/empathy-persona-view.h +++ b/libempathy-gtk/empathy-persona-view.h @@ -39,7 +39,9 @@ G_BEGIN_DECLS typedef enum { EMPATHY_PERSONA_VIEW_FEATURE_NONE = 0, - EMPATHY_PERSONA_VIEW_FEATURE_ALL = (1 << 0) - 1, + 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 ()) @@ -63,6 +65,10 @@ 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; |