aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-30 12:00:48 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-30 12:00:48 +0200
commit087e04c0162af00931cd253725f9adb7096254ae (patch)
tree9ac056facbd4272b2ea88624f7e59978cd94c9c5 /src
parent0e4fbb4610f3e4c276148fc671298309bcaf3eab (diff)
downloadarctica-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.
Diffstat (limited to 'src')
-rw-r--r--src/shutdown-dialog.vala4
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 (); });
}