user-accounts: UmAccountDialog shouldn't be valid when shown

The user needs to enter some data before the dialog's 'Create'
button can be clicked.

https://bugzilla.gnome.org/show_bug.cgi?id=677928
This commit is contained in:
Stef Walter 2012-06-12 10:35:45 +02:00
parent 5b022773b3
commit 5fbce5f8da

View file

@ -279,7 +279,9 @@ um_account_dialog_show (UmAccountDialog *self,
gtk_window_present (GTK_WINDOW (self));
gtk_widget_grab_focus (self->name_entry);
self->valid_name = self->valid_username = TRUE;
self->valid_name = self->valid_username = FALSE;
gtk_dialog_set_response_sensitive (GTK_DIALOG (self), GTK_RESPONSE_OK,
self->valid_name && self->valid_username);
self->user_created_callback = user_created_callback;
self->user_created_data = user_created_data;