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:
parent
5b022773b3
commit
5fbce5f8da
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue