[gnome-clocks/bilelmoussaoui/fixes] fix build due to nullability update on gio
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-clocks/bilelmoussaoui/fixes] fix build due to nullability update on gio
 
- Date: Sat, 21 Nov 2020 19:44:51 +0000 (UTC)
 
commit a81049403880731f5224503e2484e4b28a51d0c8
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sat Nov 21 20:44:39 2020 +0100
    fix build due to nullability update on gio
    
    fixes #157
 src/alarm-face.vala | 2 +-
 src/window.vala     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/alarm-face.vala b/src/alarm-face.vala
index 995143b..6000739 100644
--- a/src/alarm-face.vala
+++ b/src/alarm-face.vala
@@ -42,7 +42,7 @@ public class Face : Gtk.Stack, Clocks.Clock {
         alarms = new ContentStore ();
         settings = new GLib.Settings ("org.gnome.clocks");
 
-        var app = GLib.Application.get_default ();
+        var app = (!) GLib.Application.get_default ();
         var action = (GLib.SimpleAction) app.lookup_action ("stop-alarm");
         action.activate.connect ((action, param) => {
             var a = alarms.find ((a) => {
diff --git a/src/window.vala b/src/window.vala
index 669f177..fe954b7 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -182,7 +182,7 @@ public class Window : Hdy.ApplicationWindow {
     }
 
     private void on_show_primary_menu_activate (SimpleAction action) {
-        var state = action.get_state ().get_boolean ();
+        var state = ((!) action.get_state ()).get_boolean ();
         action.set_state (new Variant.boolean (!state));
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]