Commit 3a2db9f6 authored by Guido Gunther's avatar Guido Gunther Committed by Sebastian Krzyszkowiak
Browse files

polkit-auth-prompt: Grab focus on every request



Otherwise the input field isn't refocused after a failed attempt.

Closes: #470
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 15285313
......@@ -280,6 +280,7 @@ on_auth_session_request (PhoshPolkitAuthPrompt *self,
gtk_label_set_text(GTK_LABEL (self->lbl_password), request);
gtk_entry_set_visibility (GTK_ENTRY (self->entry_password), echo_on);
gtk_entry_set_text (GTK_ENTRY (self->entry_password), "");
gtk_widget_grab_focus (self->entry_password);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment