Skip to content

Commit

Permalink
Use focus_widget property
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Dec 9, 2023
1 parent d05809a commit 7e57701
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PolkitDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,12 @@ public class Ag.PolkitDialog : Granite.MessageDialog {
authenticate_button.clicked.connect (authenticate);

default_widget = authenticate_button;
focus_widget = password_entry;

close.connect (cancel);

update_idents ();
select_session ();

((Gtk.Widget) this).realize.connect (() => {
password_entry.grab_focus ();
});
}

private void update_idents () {
Expand Down

0 comments on commit 7e57701

Please sign in to comment.