* src/gnome/modest-main-window.c
[modest] / src / widgets / modest-msg-view.h
index 814a638..7689da3 100644 (file)
 #ifndef __MODEST_MSG_VIEW_H__
 #define __MODEST_MSG_VIEW_H__
 
-#include <gtk/gtk.h>
 #include <tny-stream.h>
 #include <tny-msg.h>
 #include <tny-mime-part.h>
 #include <tny-msg-view.h>
+#include <widgets/modest-recpt-view.h>
 
 G_BEGIN_DECLS
 
@@ -50,11 +50,11 @@ typedef struct _ModestMsgView      ModestMsgView;
 typedef struct _ModestMsgViewClass ModestMsgViewClass;
 
 struct _ModestMsgView {
-       GtkScrolledWindow parent;
+       GtkViewport parent;
 };
 
 struct _ModestMsgViewClass {
-       GtkScrolledWindowClass parent_class;
+       GtkViewportClass parent_class;
 
        void (*link_hover)         (ModestMsgView *msgview, const gchar* link,
                                    gpointer user_data);
@@ -62,10 +62,13 @@ struct _ModestMsgViewClass {
                                    gpointer user_data);
        void (*attachment_clicked) (ModestMsgView *msgview, int index,
                                    gpointer user_data);
+       void (*recpt_activated)    (ModestMsgView *msgview, const gchar *address,
+                                   gpointer user_data);
 };
 
 
 /**
+ *
  * modest_msg_view_get_type
  *
  * get the GType for the this class
@@ -98,6 +101,20 @@ GtkWidget*   modest_msg_view_new          (TnyMsg *tny_msg);
  *  */
 void         modest_msg_view_set_message  (ModestMsgView *self, TnyMsg *tny_msg);
 
+
+
+/**
+ * modest_msg_view_set_message
+ * @self: a ModestMsgView instance
+ *
+ * get the @tny_msg e-mail message.
+ *
+ * Returns: the message or NULL
+ */
+TnyMsg*      modest_msg_view_get_message  (ModestMsgView *self);
+
+
+
 G_END_DECLS
 
 #endif /* __MODEST_MSG_VIEW_H__ */