X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view.h;h=067e23667d2d5f9a29014b1b0a0dff81728ea26f;hp=7689da370f23d244a447c567629c9e83b292b47e;hb=40a8f5cbe03bd040fe3403dbfa6806df4fb6bc8a;hpb=49b1c4b5e7e28b54afd6c84b3c3b4f38c0cea2e4 diff --git a/src/widgets/modest-msg-view.h b/src/widgets/modest-msg-view.h index 7689da3..067e236 100644 --- a/src/widgets/modest-msg-view.h +++ b/src/widgets/modest-msg-view.h @@ -50,17 +50,23 @@ typedef struct _ModestMsgView ModestMsgView; typedef struct _ModestMsgViewClass ModestMsgViewClass; struct _ModestMsgView { - GtkViewport parent; + GtkContainer parent; }; struct _ModestMsgViewClass { - GtkViewportClass parent_class; + GtkContainerClass parent_class; + void (*set_scroll_adjustments) (ModestMsgView *msg_view, + GtkAdjustment *hadj, + GtkAdjustment *vadj); + void (*link_hover) (ModestMsgView *msgview, const gchar* link, gpointer user_data); void (*link_clicked) (ModestMsgView *msgview, const gchar* link, gpointer user_data); - void (*attachment_clicked) (ModestMsgView *msgview, int index, + void (*link_contextual) (ModestMsgView *msgview, const gchar* link, + gpointer user_data); + void (*attachment_clicked) (ModestMsgView *msgview, TnyMimePart *mime_part, gpointer user_data); void (*recpt_activated) (ModestMsgView *msgview, const gchar *address, gpointer user_data); @@ -107,12 +113,41 @@ 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); +void modest_msg_view_set_hadjustment (ModestMsgView *self, GtkAdjustment *hadj); +void modest_msg_view_set_shadow_type (ModestMsgView *self, GtkShadowType type); +GtkShadowType modest_msg_view_get_shadow_type (ModestMsgView *self); + +gboolean modest_msg_view_search (ModestMsgView *self, const gchar *search); +gboolean modest_msg_view_search_next (ModestMsgView *self); +void modest_msg_view_set_zoom (ModestMsgView *self, gdouble zoom); +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