user-accounts: replace deprecated gtk_widget_get_state

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