"hovershoot-max", 0,
NULL);
gtk_container_add (GTK_CONTAINER (priv->main_scroll), priv->msg_view);
- g_object_ref (priv->msg_view);
gtk_box_pack_start (GTK_BOX(main_vbox), priv->main_scroll, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER(obj), main_vbox);
/* Sanity check: shouldn't be needed, the window mgr should
call this function before */
modest_msg_view_window_disconnect_signals (MODEST_WINDOW (obj));
- g_object_unref (priv->msg_view);
if (priv->fetch_image_redraw_handler > 0) {
g_source_remove (priv->fetch_image_redraw_handler);
modest_window_mgr_unregister_header (modest_runtime_get_window_mgr (), header);
row_reference = (GtkTreeRowReference *) user_data;
- if (canceled) {
+ self = (ModestMsgViewWindow *) modest_mail_operation_get_source (mail_op);
+ if (canceled || !self || MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (self)->msg_view == NULL ) {
if (row_reference)
gtk_tree_row_reference_free (row_reference);
- self = (ModestMsgViewWindow *) modest_mail_operation_get_source (mail_op);
if (self) {
/* Restore window title */
update_window_title (self);
if (!modest_ui_actions_msg_retrieval_check (mail_op, header, msg)) {
if (row_reference)
gtk_tree_row_reference_free (row_reference);
- self = (ModestMsgViewWindow *) modest_mail_operation_get_source (mail_op);
if (self) {
priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (self);
/* First we check if the parent is a folder window */
}
/* Get the window */
- self = (ModestMsgViewWindow *) modest_mail_operation_get_source (mail_op);
g_return_if_fail (MODEST_IS_MSG_VIEW_WINDOW (self));
priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (self);