X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view.h;h=e34876242d2fd053286143ed90e191937e9fa1ae;hb=32ba35b63ed6986eab57acf8bfd76dba10ee129e;hp=9f258aba83b15bcfed64dd8fc8dba239edefb4f2;hpb=2188de8f73d159e6de29692e05970243e5b88289;p=modest diff --git a/src/widgets/modest-msg-view.h b/src/widgets/modest-msg-view.h index 9f258ab..e348762 100644 --- a/src/widgets/modest-msg-view.h +++ b/src/widgets/modest-msg-view.h @@ -30,11 +30,11 @@ #ifndef __MODEST_MSG_VIEW_H__ #define __MODEST_MSG_VIEW_H__ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include G_BEGIN_DECLS @@ -50,11 +50,11 @@ typedef struct _ModestMsgView ModestMsgView; typedef struct _ModestMsgViewClass ModestMsgViewClass; struct _ModestMsgView { - GtkScrolledWindow parent; + GtkVBox parent; }; struct _ModestMsgViewClass { - GtkScrolledWindowClass parent_class; + GtkVBoxClass 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 @@ -77,7 +80,7 @@ GType modest_msg_view_get_type (void) G_GNUC_CONST; /** * modest_msg_view_new - * @tny_msg: a TnyMsgIface instance, or NULL + * @tny_msg: a TnyMsg instance, or NULL * * create a new ModestMsgView widget (a GtkScrolledWindow subclass), * and display the @tny_msg e-mail message in it. If @tny_msg is NULL, @@ -85,28 +88,32 @@ GType modest_msg_view_get_type (void) G_GNUC_CONST; * * Returns: a new ModestMsgView widget, or NULL if there's an error */ -GtkWidget* modest_msg_view_new (TnyMsgIface *tny_msg); +GtkWidget* modest_msg_view_new (TnyMsg *tny_msg); /** * modest_msg_view_set_message * @self: a ModestMsgView instance - * @tny_msg: a TnyMsgIface instance, or NULL + * @tny_msg: a TnyMsg instance, or NULL * * display the @tny_msg e-mail message. If @tny_msg is NULL, * then a blank page will be displayed * */ -void modest_msg_view_set_message (ModestMsgView *self, TnyMsgIface *tny_msg); +void modest_msg_view_set_message (ModestMsgView *self, TnyMsg *tny_msg); + + /** - * modest_msg_view_get_selected_text: + * modest_msg_view_set_message * @self: a ModestMsgView instance - * - * get the user selected part of the message - * - * Returns: a newly allocated string of the user's selection or NULL if nothing is selected + * + * get the @tny_msg e-mail message. + * + * Returns: the message or NULL */ -gchar * modest_msg_view_get_selected_text (ModestMsgView *self); +TnyMsg* modest_msg_view_get_message (ModestMsgView *self); + + G_END_DECLS