X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fgnome%2Fmodest-msg-view-window.c;h=ec9c4d8effd08a5af4e698e3595a2196331a0ba0;hp=172bb0fd3feab94a2a721dea93b470f6c5955714;hb=57cedf59b21a6e53f87a7ad79b9d5c25b62f5db1;hpb=5b68f7c4a513a7a6f45549e7bf40838ce754db27 diff --git a/src/gnome/modest-msg-view-window.c b/src/gnome/modest-msg-view-window.c index 172bb0f..ec9c4d8 100644 --- a/src/gnome/modest-msg-view-window.c +++ b/src/gnome/modest-msg-view-window.c @@ -37,7 +37,7 @@ #include #include #include "modest-msg-view-window-ui-dimming.h" - +#include "modest-defs.h" #include #include #include "widgets/modest-msg-view.h" @@ -206,8 +206,9 @@ on_delete_event (GtkWidget *widget, GdkEvent *event, ModestMsgViewWindow *self) ModestWindow * modest_msg_view_window_new_for_attachment (TnyMsg *msg, - const gchar *modest_account_name, - const gchar *msg_uid) + const gchar *modest_account_name, + const gchar *mailbox, /* ignored */ + const gchar *msg_uid) { GObject *obj; ModestMsgViewWindowPrivate *priv; @@ -370,6 +371,7 @@ modest_msg_view_window_get_message_uid (ModestMsgViewWindow *self) ModestWindow* modest_msg_view_window_new_with_header_model (TnyMsg *msg, const gchar *modest_account_name, + const gchar *mailbox, /*ignored*/ const gchar *msg_uid, GtkTreeModel *model, GtkTreeRowReference *row_reference) @@ -379,7 +381,7 @@ modest_msg_view_window_new_with_header_model (TnyMsg *msg, actions */ g_message ("partially implemented %s", __FUNCTION__); - return modest_msg_view_window_new_for_attachment (msg, modest_account_name, msg_uid); + return modest_msg_view_window_new_for_attachment (msg, modest_account_name, NULL, msg_uid); } @@ -516,3 +518,36 @@ modest_msg_view_window_toggle_find_toolbar (GtkToggleAction *toggle, g_message ("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } + +void +modest_msg_view_window_add_to_contacts (ModestMsgViewWindow *self) +{ + modest_ui_actions_on_add_to_contacts (NULL, MODEST_WINDOW (self)); +} + +void +modest_msg_view_window_fetch_images (ModestMsgViewWindow *self) +{ + ModestMsgViewWindowPrivate *priv; + priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (self); + + modest_msg_view_request_fetch_images (MODEST_MSG_VIEW (priv->msg_view)); +} + +gboolean +modest_msg_view_window_has_blocked_external_images (ModestMsgViewWindow *self) +{ + ModestMsgViewWindowPrivate *priv; + priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (self); + + g_return_val_if_fail (MODEST_IS_MSG_VIEW_WINDOW (self), FALSE); + + return modest_msg_view_has_blocked_external_images (MODEST_MSG_VIEW (priv->msg_view)); +} + +void +modest_msg_view_window_reload (ModestMsgViewWindow *self) +{ + /* Not implemented */ + return; +}