Workaround pygtk 2.17: verify if we have set_item_orientation before using it
Also remove Statusbar.get_message_area call that is only available in 2.22
Remove duplicate login call