Commit a8104940 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui
Browse files

fix build due to nullability update on gio

fixes #157
parent cbf84309
......@@ -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) => {
......
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment