[gnome-clocks] stopwatch-face: Return a bool value from grab_focus()



commit f84c81b896a1a565e0d918c0a0a408cfaba0f573
Author: Yetizone <andreii lisita gmail com>
Date:   Fri Jan 15 20:01:55 2021 +0200

    stopwatch-face: Return a bool value from grab_focus()
    
    In GTK4 the grab_focus() virtual function must return a bool value
    https://valadoc.org/gtk4/Gtk.Widget.grab_focus.html

 src/stopwatch-face.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/stopwatch-face.vala b/src/stopwatch-face.vala
index 10fcc6a5..dd478fcf 100644
--- a/src/stopwatch-face.vala
+++ b/src/stopwatch-face.vala
@@ -275,8 +275,9 @@ public class Face : Gtk.Box, Clocks.Clock {
         return true;
     }
 
-    public override void grab_focus () {
+    public override bool grab_focus () {
         start_btn.grab_focus ();
+        return true;
     }
 
     public bool escape_pressed () {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]