X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwidgets%2Fmodest-msg-view.h;h=7689da370f23d244a447c567629c9e83b292b47e;hb=49b1c4b5e7e28b54afd6c84b3c3b4f38c0cea2e4;hp=fd83a5b90726f96be3d3d4c6c8aedaf04d157f08;hpb=f6ae525c79d3665c68a050b4037ea8105b490f05;p=modest diff --git a/src/widgets/modest-msg-view.h b/src/widgets/modest-msg-view.h index fd83a5b..7689da3 100644 --- a/src/widgets/modest-msg-view.h +++ b/src/widgets/modest-msg-view.h @@ -34,6 +34,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -49,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); @@ -61,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 @@ -97,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__ */