X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-attachments-view.h;h=527e531b9c6a61a22b4bde237ee27ac8cfbb9c67;hb=40e92875620a12ce1d34126c9a9c6bce97b21e6c;hp=fe11722214039508eaf47f0dd629ba3772e6ff12;hpb=28a28a37ba619ce45b8725531cb86b85bc6c0891;p=modest diff --git a/src/widgets/modest-attachments-view.h b/src/widgets/modest-attachments-view.h index fe11722..527e531 100644 --- a/src/widgets/modest-attachments-view.h +++ b/src/widgets/modest-attachments-view.h @@ -33,6 +33,10 @@ #include #include +#define MODEST_ATTACHMENTS_VIEW_SELECTION_PREFIX "modest-attachment:" +#define MODEST_ATTACHMENTS_VIEW_CLIPBOARD_TYPE "MODEST_ATTACHMENT" +#define MODEST_ATTACHMENTS_VIEW_CLIPBOARD_TYPE_INDEX 4 + G_BEGIN_DECLS #define MODEST_TYPE_ATTACHMENTS_VIEW (modest_attachments_view_get_type ()) @@ -47,15 +51,15 @@ typedef struct _ModestAttachmentsViewClass ModestAttachmentsViewClass; struct _ModestAttachmentsView { - GtkTextView parent; + GtkEventBox parent; }; struct _ModestAttachmentsViewClass { - GtkTextViewClass parent_class; + GtkEventBoxClass parent_class; - void (*activate) (ModestAttachmentsView *attachments_view, gint index); + void (*activate) (ModestAttachmentsView *attachments_view, TnyMimePart *mime_part); }; GType modest_attachments_view_get_type (void); @@ -63,6 +67,12 @@ GType modest_attachments_view_get_type (void); GtkWidget* modest_attachments_view_new (TnyMsg *msg); void modest_attachments_view_set_message (ModestAttachmentsView *attachments_view, TnyMsg *msg); +void modest_attachments_view_add_attachment (ModestAttachmentsView *attachments_view, TnyMimePart *part); +void modest_attachments_view_remove_attachment (ModestAttachmentsView *attachments_view, TnyMimePart *part); +void modest_attachments_view_remove_attachment_by_id (ModestAttachmentsView *attachments_view, const gchar *att_id); +GList *modest_attachments_view_get_selection (ModestAttachmentsView *attachments_view); +void modest_attachments_view_select_all (ModestAttachmentsView *attachments_view); + G_END_DECLS