Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-attachment-view.h
index fe6416e..e910296 100644 (file)
@@ -47,26 +47,29 @@ typedef struct _ModestAttachmentViewClass ModestAttachmentViewClass;
 
 struct _ModestAttachmentView
 {
-       GtkHBox parent;
+       GtkEventBox parent;
 
 };
 
 struct _ModestAttachmentViewClass
 {
-       GtkHBoxClass parent_class;
+       GtkEventBoxClass parent_class;
 
        /* virtual methods */
        TnyMimePart* (*get_part_func) (TnyMimePartView *self);
        void (*set_part_func) (TnyMimePartView *self, TnyMimePart *part);
        void (*clear_func) (TnyMimePartView *self);
 
-       /* signals */
-       void (*activate)           (ModestAttachmentView *attachment_view);
 };
 
 GType modest_attachment_view_get_type (void);
 
-GtkWidget* modest_attachment_view_new (TnyMimePart *mime_part);
+GtkWidget* modest_attachment_view_new (TnyMimePart *mime_part, gboolean detect_size);
+void modest_attachment_view_set_detect_size (ModestAttachmentView *self, gboolean detect_size);
+void modest_attachment_view_set_size (ModestAttachmentView *self, guint64 size);
+guint64 modest_attachment_view_get_size (ModestAttachmentView *self);
+
+
 
 G_END_DECLS