[gnome-clocks/bilelmoussaoui/redesign-timer] Timer: focus start button only on init state
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/bilelmoussaoui/redesign-timer] Timer: focus start button only on init state
- Date: Tue, 28 Jan 2020 18:37:20 +0000 (UTC)
commit a60f271c91087c7a8eb2444908d2ea583a5ece6e
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Tue Jan 28 19:31:38 2020 +0100
Timer: focus start button only on init state
src/timer.vala | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/src/timer.vala b/src/timer.vala
index 7586a7c..b160d1f 100644
--- a/src/timer.vala
+++ b/src/timer.vala
@@ -395,7 +395,7 @@ public class Row : Gtk.ListBoxRow {
timer_name.label = _("%i hour %i minute timer".printf (item.hours, item.minutes));
} else if (item.seconds != 0 && item.minutes == 0 && item.hours != 0) {
timer_name.label = _("%i hour %i second timer".printf (item.hours, item.seconds));
- } else if (item.seconds != 0 && item.minutes != 0 && item.hours != 0) {
+ } else if (item.seconds != 0 && item.minutes != 0 && item.hours != 0) {
timer_name.label = _("%i hour %i minute %i second timer".printf (item.hours, item.minutes,
item.seconds));
}
}
@@ -518,22 +518,9 @@ public class Face : Gtk.Stack, Clocks.Clock {
}
public override void grab_focus () {
- /*if (visible_child == setup_frame) {
+ if (timers.get_n_items () == 0) {
start_button.grab_focus ();
}
- */
- }
-
- public bool escape_pressed () {
- /*if (state == State.STOPPED) {
- return false;
- }
-
- reset ();
-
- return true;
- */
- return false;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]