[gnome-clocks/bilelmoussaoui/redesign-timer] Timer: focus start button only on init state



commit 546a9d4ce64cca1aa0a23013637884fcbc78ed7d
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 | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/src/timer.vala b/src/timer.vala
index 7586a7c..501676a 100644
--- a/src/timer.vala
+++ b/src/timer.vala
@@ -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]