X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view-window.h;h=0decc456b3189ad1fde391004ff2b0d65ee37f7d;hp=8f3efd5218356dcf353f8b6c1668bf202b7f2b0f;hb=HEAD;hpb=5f456f4b288067f9de646b31adabedef5a7171af diff --git a/src/widgets/modest-msg-view-window.h b/src/widgets/modest-msg-view-window.h index 8f3efd5..0decc45 100644 --- a/src/widgets/modest-msg-view-window.h +++ b/src/widgets/modest-msg-view-window.h @@ -34,6 +34,8 @@ #include #ifdef MODEST_TOOLKIT_HILDON2 #include +#else +#include #endif #include #include @@ -54,7 +56,7 @@ typedef struct { #ifdef MODEST_TOOLKIT_HILDON2 ModestHildon2Window parent; #else - ModestWindow parent; + ModestShellWindow parent; #endif } ModestMsgViewWindow; @@ -62,7 +64,7 @@ typedef struct { #ifdef MODEST_TOOLKIT_HILDON2 ModestHildon2WindowClass parent_class; #else - ModestWindowClass parent_class; + ModestShellWindowClass parent_class; #endif void (*msg_changed) (ModestMsgViewWindow *self, @@ -100,6 +102,7 @@ GType modest_msg_view_window_get_type (void) G_GNUC_CONST; * Returns: a new #ModestMsgViewWindow, or NULL in case of error */ ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg, + TnyMsg *top_msg, const gchar *modest_account_name, const gchar *mailbox, const gchar *msg_uid); @@ -119,6 +122,7 @@ ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg, */ ModestWindow* modest_msg_view_window_new_with_other_body (TnyMsg *msg, TnyMimePart *other_body, + TnyMsg *top_msg, const gchar *modest_account_name, const gchar *mailbox, const gchar *msg_uid); @@ -227,6 +231,17 @@ modest_msg_view_window_get_header (ModestMsgViewWindow *self); TnyMsg* modest_msg_view_window_get_message (ModestMsgViewWindow *window); /** + * modest_msg_view_window_get_top_message: + * @window: an #ModestMsgViewWindow instance + * + * get a new reference to the parent message of the tree of views. The caller + * must free this new reference + * + * Returns: a new #TnyMsg instance, or NULL in case of error + */ +TnyMsg* modest_msg_view_window_get_top_message (ModestMsgViewWindow *window); + +/** * modest_msg_view_window_get_message_uid: * @msg: an #ModestMsgViewWindow instance *