Then he got up, and, putting his hands in his trousers pockets, whistled as he walked away. 
Therefore he smiled faintly before getting up, and, putting his hands in his trouser pockets, whistled as he walked away. 