#include "modest-protocol-info.h"
#include "modest-tny-platform-factory.h"
#include "modest-platform.h"
+#include "modest-debug.h"
#include <tny-mime-part.h>
#include <tny-camel-folder.h>
#include <tny-camel-imap-folder.h>
static void
open_msgs_performer(gboolean canceled,
GError *err,
- GtkWindow *parent_window,
- TnyAccount *account,
+ GtkWindow *parent_window,
+ TnyAccount *account,
gpointer user_data)
{
ModestMailOperation *mail_op;
not_opened_headers = TNY_LIST (user_data);
+ if (err) {
+ /* TODO: Show an error ? */
+ goto clean;
+ }
+
/* Get the error message depending on the protocol */
proto_name = tny_account_get_proto (account);
if (proto_name != NULL) {
NULL);
/* Frees */
- g_object_unref (mail_op);
+ clean:
+ if (mail_op)
+ g_object_unref (mail_op);
g_object_unref (not_opened_headers);
g_object_unref (account);
}
}
}
-void
+void
modest_ui_actions_msg_edit_on_change_priority (GtkRadioAction *action,
GtkRadioAction *selected,
ModestWindow *window)
modest_msg_edit_window_set_priority_flags (MODEST_MSG_EDIT_WINDOW (window), flags);
}
-void
+void
modest_ui_actions_msg_edit_on_change_file_format (GtkRadioAction *action,
GtkRadioAction *selected,
ModestWindow *window)
}
-void
+void
modest_ui_actions_on_zoom_plus (GtkAction *action,
ModestWindow *window)
{