-typedef struct _ModestMsgViewClass ModestMsgViewClass;
-
-struct _ModestMsgView {
- GtkScrolledWindow parent;
-};
-
-struct _ModestMsgViewClass {
- GtkScrolledWindowClass parent_class;
-
- void (*link_clicked) (GtkWidget *widget, const gchar* link, gpointer user_data);
- void (*attachment_clicked) (GtkWidget *widget, int index, gpointer user_data);
+typedef struct _ModestMsgViewIface ModestMsgViewIface;
+
+struct _ModestMsgViewIface {
+ GTypeInterface parent;
+
+ GtkAdjustment* (*get_vadjustment_func) (ModestMsgView *self);
+ GtkAdjustment* (*get_hadjustment_func) (ModestMsgView *self);
+ void (*set_vadjustment_func) (ModestMsgView *self, GtkAdjustment *vadj);
+ void (*set_hadjustment_func) (ModestMsgView *self, GtkAdjustment *vadj);
+ void (*set_shadow_type_func) (ModestMsgView *self, GtkShadowType type);
+ GtkShadowType (*get_shadow_type_func) (ModestMsgView *self);
+ TnyHeaderFlags (*get_priority_func) (ModestMsgView *self);
+ void (*set_priority_func) (ModestMsgView *self, TnyHeaderFlags flags);
+ void (*set_view_images_func) (ModestMsgView *self, gboolean view_images);
+ TnyList * (*get_selected_attachments_func) (ModestMsgView *self);
+ TnyList * (*get_attachments_func) (ModestMsgView *self);
+ void (*grab_focus_func) (ModestMsgView *self);
+ void (*remove_attachment_func) (ModestMsgView *view, TnyMimePart *attachment);
+
+ /* signals */
+ void (*set_scroll_adjustments) (ModestMsgView *msg_view,
+ GtkAdjustment *hadj,
+ GtkAdjustment *vadj);
+
+ void (*link_contextual) (ModestMsgView *msgview, const gchar* link,
+ gpointer user_data);
+ void (*attachment_clicked) (ModestMsgView *msgview, TnyMimePart *mime_part,
+ gpointer user_data);
+ void (*recpt_activated) (ModestMsgView *msgview, const gchar *address,
+ gpointer user_data);
+ gboolean (*fetch_image) (ModestMsgView *msgview, const gchar *uri,
+ TnyStream *stream);