From 6b1e0798855792d1e0a25ea4a9043e167e352c06 Mon Sep 17 00:00:00 2001 From: Marius Meisenzahl Date: Thu, 1 Apr 2021 12:51:55 +0200 Subject: [PATCH 1/3] Fix DeviceController.vala --- src/controllers/DeviceController.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/DeviceController.vala b/src/controllers/DeviceController.vala index fed60ca..de43c35 100644 --- a/src/controllers/DeviceController.vala +++ b/src/controllers/DeviceController.vala @@ -22,7 +22,7 @@ public abstract class Controllers.DeviceController : Object { protected Models.Device _device; - public DeviceController (Models.Device device) { + protected DeviceController (Models.Device device) { Object ( device : device ); From 5d4fc4d834eef9f4ddd326f323d103492cd02ec5 Mon Sep 17 00:00:00 2001 From: Marius Meisenzahl Date: Thu, 1 Apr 2021 12:52:05 +0200 Subject: [PATCH 2/3] Fix AbstractDevicePage.vala --- src/pages/AbstractDevicePage.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/AbstractDevicePage.vala b/src/pages/AbstractDevicePage.vala index b6085db..68976ff 100644 --- a/src/pages/AbstractDevicePage.vala +++ b/src/pages/AbstractDevicePage.vala @@ -49,7 +49,7 @@ public abstract class Pages.AbstractDevicePage : Granite.SettingsPage { construct set { if (header_icon_button != null) { header_icon_button.set_image (new Gtk.Image.from_icon_name (value, Gtk.IconSize.LARGE_TOOLBAR)); - (header_icon_button.image as Gtk.Image).pixel_size = 64; + ((Gtk.Image) header_icon_button.image).pixel_size = 64; } _icon_name = value; } @@ -71,7 +71,7 @@ public abstract class Pages.AbstractDevicePage : Granite.SettingsPage { construct { header_icon_button = new Gtk.Button.from_icon_name (icon_name, Gtk.IconSize.DIALOG); - (header_icon_button.image as Gtk.Image).pixel_size = 64; + ((Gtk.Image) header_icon_button.image).pixel_size = 64; header_icon_button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT); header_icon_button.valign = Gtk.Align.START; @@ -140,7 +140,7 @@ public abstract class Pages.AbstractDevicePage : Granite.SettingsPage { notify["icon-name"].connect (() => { if (header_icon_button != null) { header_icon_button.set_image (new Gtk.Image.from_icon_name (icon_name, Gtk.IconSize.LARGE_TOOLBAR)); - (header_icon_button.image as Gtk.Image).pixel_size = 64; + ((Gtk.Image) header_icon_button.image).pixel_size = 64; } }); From 3d1791eea966b9bc680049e0c088ad2c80a82674 Mon Sep 17 00:00:00 2001 From: Marius Meisenzahl Date: Thu, 1 Apr 2021 12:53:19 +0200 Subject: [PATCH 3/3] Fix Controller.vala --- src/philips/hue/Controller.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/philips/hue/Controller.vala b/src/philips/hue/Controller.vala index cffbd32..c9c1b30 100644 --- a/src/philips/hue/Controller.vala +++ b/src/philips/hue/Controller.vala @@ -27,7 +27,7 @@ public class Philips.Hue.Controller : Controllers.DeviceController { device : device ); - controller = new Philips.Hue.BridgeController ((device as Philips.Hue.Lamp).bridge); + controller = new Philips.Hue.BridgeController (((Philips.Hue.Lamp) device).bridge); } public override void switch_hue (uint16 hue) {