From 873c42ff4f6b1f35c00fc0a3536c3a851f50e7b8 Mon Sep 17 00:00:00 2001 From: noname Date: Thu, 20 Mar 2025 10:55:00 +1100 Subject: make setters private --- lib/sway/sway.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/sway/sway.vala') diff --git a/lib/sway/sway.vala b/lib/sway/sway.vala index f6c20b4..b92d8da 100644 --- a/lib/sway/sway.vala +++ b/lib/sway/sway.vala @@ -37,14 +37,15 @@ public class Sway : Object { }); } - public Workspace focused_workspace; - public Output focused_output; - public Container? focused_container; + public Workspace focused_workspace { get; private set; } + public Output focused_output { get; private set; } + public Container? focused_container { get; private set; } private static HashTable _nodes = new HashTable(i => i, (a,b) => a==b); public List nodes { owned get { return _nodes.get_values(); } } + public List node_test { owned get { return nodes; } } private HashTable _workspaces = new HashTable(str_hash, str_equal); -- cgit v1.2.3