diff options
author | Aylur <[email protected]> | 2024-08-11 02:03:21 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-08-11 02:03:21 +0200 |
commit | c6b669f0ed6aaa0383b2b0107e3004bc5b716ecd (patch) | |
tree | 31e7845f6ebec76960c2de4490bb3923d98b3584 /src | |
parent | 2591355234f7058c491838a640653077267b8a49 (diff) |
feat: Window.namespace
Diffstat (limited to 'src')
-rw-r--r-- | src/widget/window.vala | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/widget/window.vala b/src/widget/window.vala index 088ef7f..17dc76d 100644 --- a/src/widget/window.vala +++ b/src/widget/window.vala @@ -45,8 +45,11 @@ public class Window : Gtk.Window { height_request = 1; width_request = 1; init_for_window(this); - set_namespace(this, name); - notify["name"].connect(() => set_namespace(this, name)); + } + + public string namespace { + get { return get_namespace(this); } + set { set_namespace(this, value); } } public int anchor { @@ -87,7 +90,7 @@ public class Window : Gtk.Window { set_exclusive_zone(this, 0); break; case Exclusivity.EXCLUSIVE: - auto_exclusive_zone_enable (this); + auto_exclusive_zone_enable(this); break; case Exclusivity.IGNORE: set_exclusive_zone(this, -1); @@ -95,7 +98,7 @@ public class Window : Gtk.Window { } } get { - if (auto_exclusive_zone_is_enabled (this)) + if (auto_exclusive_zone_is_enabled(this)) return Exclusivity.EXCLUSIVE; if (get_exclusive_zone(this) == -1) |