X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwidgets%2Fmodest-msg-view.h;h=067e23667d2d5f9a29014b1b0a0dff81728ea26f;hb=40a8f5cbe03bd040fe3403dbfa6806df4fb6bc8a;hp=ce02e1d4e20deacbb52a5486bd291df31bced21a;hpb=10b43e346fe5f475ffb4f3286f188ab099447b21;p=modest diff --git a/src/widgets/modest-msg-view.h b/src/widgets/modest-msg-view.h index ce02e1d..067e236 100644 --- a/src/widgets/modest-msg-view.h +++ b/src/widgets/modest-msg-view.h @@ -113,12 +113,24 @@ 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. + * gets a new reference the #TnyMsg of the message view. The caller + * must free the new reference * * Returns: the message or NULL */ TnyMsg* modest_msg_view_get_message (ModestMsgView *self); +/** + * modest_msg_view_get_message_is_empty + * @self: a ModestMsgView instance + * + * Returns whether the message contains any visbible (searchable) text. + * For instance, this will return FALSE if the message contains only markup. + * + * Returns: TRUE if the message contains visible text. + */ +gboolean modest_msg_view_get_message_is_empty (ModestMsgView *self); + GtkAdjustment *modest_msg_view_get_vadjustment (ModestMsgView *self); GtkAdjustment *modest_msg_view_get_hadjustment (ModestMsgView *self); void modest_msg_view_set_vadjustment (ModestMsgView *self, GtkAdjustment *vadj); @@ -133,6 +145,9 @@ gdouble modest_msg_view_get_zoom (ModestMsgView *self); TnyHeaderFlags modest_msg_view_get_priority (ModestMsgView *self); void modest_msg_view_set_priority (ModestMsgView *self, TnyHeaderFlags flags); GList *modest_msg_view_get_selected_attachments (ModestMsgView *self); +GList *modest_msg_view_get_attachments (ModestMsgView *self); +void modest_msg_view_grab_focus (ModestMsgView *self); +void modest_msg_view_remove_attachment (ModestMsgView *view, TnyMimePart *attachment); G_END_DECLS