Tabs opened in background steal focus
Bug description
When auto-joining MUC rooms, new rooms open in tabs, but the existing tab remains selected. However the new tabs steal input focus from the foreground selected tab.
Steps to reproduce
Type a message into a MUC room while auto-joining other rooms. The input focus switches into the new rooms that you can't even see.
It's even possible to press enter, and your message will be sent to the wrong room instead of the one in the current tab.
Software versions
OS version: Ubuntu
GTK version: 2.24.4
PyGTK version: 2.22.0