diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-30 12:00:48 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-05-30 12:00:48 +0200 |
commit | 087e04c0162af00931cd253725f9adb7096254ae (patch) | |
tree | 9ac056facbd4272b2ea88624f7e59978cd94c9c5 | |
parent | 0e4fbb4610f3e4c276148fc671298309bcaf3eab (diff) | |
download | arctica-greeter-087e04c0162af00931cd253725f9adb7096254ae.tar.gz arctica-greeter-087e04c0162af00931cd253725f9adb7096254ae.tar.bz2 arctica-greeter-087e04c0162af00931cd253725f9adb7096254ae.zip |
src/shutdown-dialog.vala: Grab Reboot button focus when user requests a reboot.
-rw-r--r-- | src/shutdown-dialog.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shutdown-dialog.vala b/src/shutdown-dialog.vala index 79e102d..cbe4d7e 100644 --- a/src/shutdown-dialog.vala +++ b/src/shutdown-dialog.vala @@ -200,6 +200,8 @@ public class ShutdownDialog : Gtk.Fixed warning ("Failed to restart: %s", e.message); } }); + if (type == ShutdownDialogType.RESTART) + show.connect(() => { button.grab_focus (); }); } if (LightDM.get_can_shutdown ()) @@ -218,7 +220,7 @@ public class ShutdownDialog : Gtk.Fixed } }); - if (type != ShutdownDialogType.SHUTDOWN) + if (type == ShutdownDialogType.SHUTDOWN) show.connect(() => { button.grab_focus (); }); } |