* update to the new iterator-API that tinymail now requires
[modest] / src / modest-tny-msg-view.h
index 20f0a12..c071168 100644 (file)
@@ -60,7 +60,9 @@ struct _ModestTnyMsgView {
 
 struct _ModestTnyMsgViewClass {
        GtkScrolledWindowClass parent_class;
-       void (*mailto_clicked) (GtkWidget *widget, gpointer user_data);
+
+       void (*link_clicked)       (GtkWidget *widget, const gchar* link, gpointer user_data);
+       void (*attachment_clicked) (GtkWidget *widget, int index, gpointer user_data);
 };
 
 
@@ -84,7 +86,7 @@ GType        modest_tny_msg_view_get_type    (void) G_GNUC_CONST;
  *  
  * Returns: a new ModestTnyMsgView widget, or NULL if there's an error
  */
-GtkWidget*   modest_tny_msg_view_new          (TnyMsgIface *tny_msg, gboolean show_attachments_inline);
+GtkWidget*   modest_tny_msg_view_new          (const TnyMsgIface *tny_msg);
 
 
 /**
@@ -96,16 +98,7 @@ GtkWidget*   modest_tny_msg_view_new          (TnyMsgIface *tny_msg, gboolean sh
  * then a blank page will be displayed
  *  */
 void         modest_tny_msg_view_set_message  (ModestTnyMsgView *self,
-                                               TnyMsgIface *tny_msg);
-
-/**
- * modest_tny_msg_view_redraw
- * @self: a ModestTnyMsgView instance
- *
- * re-display the current e-mail message.
- */
-void         modest_tny_msg_view_redraw  (ModestTnyMsgView *self);
-
+                                               const TnyMsgIface *tny_msg);
 
 /**
  * modest_tny_msg_view_get_selected_text:
@@ -117,10 +110,6 @@ void         modest_tny_msg_view_redraw  (ModestTnyMsgView *self);
  */
 gchar *      modest_tny_msg_view_get_selected_text (ModestTnyMsgView *self);
 
-gboolean modest_tny_msg_view_get_show_attachments_inline_flag (ModestTnyMsgView *self);
-
-gboolean modest_tny_msg_view_set_show_attachments_inline_flag (ModestTnyMsgView *self, gboolean flag);
-
 G_END_DECLS
 
 #endif /* __MODEST_TNY_MSG_VIEW_H__ */