factor out account_is_selected()
factor out account_is_selected()

https://bugzilla.gnome.org/show_bug.cgi?id=671035

Distrotech/telepathy-account-widgets,GNOME/telepathy-account-widgets,Distrotech/telepathy-account-widgets,GNOME/telepathy-account-widgets,GNOME/telepathy-account-widgets