From 320f1fa651bb718cea0d02120c1656fdfb7208c4 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 20 Aug 2024 01:35:57 +0900 Subject: [PATCH] RDNN behavior schema (#2034) --- data/gala.gschema.xml | 5 +---- meson.build | 1 - src/InternalUtils.vala | 2 +- src/Widgets/MultitaskingView.vala | 2 +- src/WindowManager.vala | 2 +- vapi/config.vapi | 1 - 6 files changed, 4 insertions(+), 9 deletions(-) diff --git a/data/gala.gschema.xml b/data/gala.gschema.xml index 61f5dc36..7cea18fd 100644 --- a/data/gala.gschema.xml +++ b/data/gala.gschema.xml @@ -30,7 +30,7 @@ - + "none" Action for the top left corner @@ -86,9 +86,6 @@ Automatically move fullscreened windows to a new workspace - - - false Whether hotcorners should be enabled when fullscreen window is opened diff --git a/meson.build b/meson.build index 566a0878..85ff5a16 100644 --- a/meson.build +++ b/meson.build @@ -36,7 +36,6 @@ conf.set_quoted('PKGDATADIR', pkgdata_dir) conf.set_quoted('PLUGINDIR', plugins_dir) conf.set_quoted('RESOURCEPATH', '/org/pantheon/desktop/gala') conf.set_quoted('VERSION', gala_version) -conf.set_quoted('SCHEMA', 'org.pantheon.desktop.gala') config_h = configure_file( output: 'config.h', configuration: conf diff --git a/src/InternalUtils.vala b/src/InternalUtils.vala index 9177d7cb..3578ef3d 100644 --- a/src/InternalUtils.vala +++ b/src/InternalUtils.vala @@ -37,7 +37,7 @@ namespace Gala { rects = {rect}; break; case InputArea.DEFAULT: - var settings = new GLib.Settings (Config.SCHEMA + ".behavior"); + var settings = new GLib.Settings ("io.elementary.desktop.wm.behavior"); // if ActionType is NONE make it 0 sized ushort tl_size = (settings.get_enum ("hotcorner-topleft") != ActionType.NONE ? 1 : 0); diff --git a/src/Widgets/MultitaskingView.vala b/src/Widgets/MultitaskingView.vala index 02f7ac15..c3e636f6 100644 --- a/src/Widgets/MultitaskingView.vala +++ b/src/Widgets/MultitaskingView.vala @@ -58,7 +58,7 @@ namespace Gala { } construct { - gala_behavior_settings = new GLib.Settings ("org.pantheon.desktop.gala.behavior"); + gala_behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior"); style_manager = Drawing.StyleManager.get_instance (); visible = false; diff --git a/src/WindowManager.vala b/src/WindowManager.vala index 42bfb705..f73b510d 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -134,7 +134,7 @@ namespace Gala { animations_settings = new GLib.Settings ("io.elementary.desktop.wm.animations"); animations_settings.bind ("enable-animations", this, "enable-animations", GLib.SettingsBindFlags.GET); - behavior_settings = new GLib.Settings (Config.SCHEMA + ".behavior"); + behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior"); new_behavior_settings = new GLib.Settings ("io.elementary.desktop.wm.behavior"); enable_animations = animations_settings.get_boolean ("enable-animations"); diff --git a/vapi/config.vapi b/vapi/config.vapi index 35abae73..c2639b4b 100644 --- a/vapi/config.vapi +++ b/vapi/config.vapi @@ -24,6 +24,5 @@ namespace Config public const string PKGDATADIR; public const string VERSION; public const string PLUGINDIR; - public const string SCHEMA; public const string RESOURCEPATH; }