}
/* Create and run the dialog */
- dialog = create_move_to_dialog (win, NULL, list_to_move);
toplevel = (GtkWindow *) gtk_widget_get_toplevel ((GtkWidget *) win);
+ dialog = create_move_to_dialog (toplevel, NULL, list_to_move);
modest_window_mgr_set_modal (modest_runtime_get_window_mgr (),
GTK_WINDOW (dialog),
toplevel);
account = modest_account_mgr_get_default_account (modest_runtime_get_account_mgr ());
msg = tny_camel_msg_new ();
- tny_camel_msg_parse (msg, file_stream);
+ tny_camel_msg_parse (TNY_CAMEL_MSG (msg), file_stream);
if (priv->top_msg)
top_msg = g_object_ref (priv->top_msg);