From fcd31c51480695ed674285196f7b1cd1941ad64e Mon Sep 17 00:00:00 2001 From: lenemter Date: Tue, 20 Aug 2024 00:12:13 +0900 Subject: [PATCH] RDNN keybindings gsettings schema --- daemon-gtk3/WindowMenu.vala | 2 +- daemon/WindowMenu.vala | 2 +- data/gala.gschema.xml | 2 +- plugins/pip/Main.vala | 2 +- src/WindowManager.vala | 2 +- src/Zoom.vala | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/daemon-gtk3/WindowMenu.vala b/daemon-gtk3/WindowMenu.vala index 1aa6a700e..74e0a1192 100644 --- a/daemon-gtk3/WindowMenu.vala +++ b/daemon-gtk3/WindowMenu.vala @@ -4,7 +4,7 @@ */ public class Gala.Daemon.WindowMenu : Gtk.Menu { - private static GLib.Settings gala_keybind_settings = new GLib.Settings ("org.pantheon.desktop.gala.keybindings"); + private static GLib.Settings gala_keybind_settings = new GLib.Settings ("io.elementary.desktop.wm.keybindings"); private static GLib.Settings keybind_settings = new GLib.Settings ("org.gnome.desktop.wm.keybindings"); public signal void perform_action (Gala.ActionType type); diff --git a/daemon/WindowMenu.vala b/daemon/WindowMenu.vala index 9980bf261..518c63af7 100644 --- a/daemon/WindowMenu.vala +++ b/daemon/WindowMenu.vala @@ -4,7 +4,7 @@ */ public class Gala.Daemon.WindowMenu : Gtk.Popover { - private static GLib.Settings gala_keybind_settings = new GLib.Settings ("org.pantheon.desktop.gala.keybindings"); + private static GLib.Settings gala_keybind_settings = new GLib.Settings ("io.elementary.desktop.wm.keybindings"); private static GLib.Settings keybind_settings = new GLib.Settings ("org.gnome.desktop.wm.keybindings"); public signal void perform_action (Gala.ActionType type) { diff --git a/data/gala.gschema.xml b/data/gala.gschema.xml index 2abc1c2f2..42f7f453e 100644 --- a/data/gala.gschema.xml +++ b/data/gala.gschema.xml @@ -96,7 +96,7 @@ - + Home']]]> Shortcut to move to first workspace diff --git a/plugins/pip/Main.vala b/plugins/pip/Main.vala index 3451f14a1..391331b64 100644 --- a/plugins/pip/Main.vala +++ b/plugins/pip/Main.vala @@ -38,7 +38,7 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin { public override void initialize (Gala.WindowManager wm) { this.wm = wm; var display = wm.get_display (); - var settings = new GLib.Settings (Config.SCHEMA + ".keybindings"); + var settings = new GLib.Settings ("io.elementary.desktop.wm.keybindings"); display.add_keybinding ("pip", settings, Meta.KeyBindingFlags.IGNORE_AUTOREPEAT, (Meta.KeyHandlerFunc) on_initiate); } diff --git a/src/WindowManager.vala b/src/WindowManager.vala index dbab3d999..98fa986f2 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -244,7 +244,7 @@ namespace Gala { FilterManager.init (this); /*keybindings*/ - var keybinding_settings = new GLib.Settings (Config.SCHEMA + ".keybindings"); + var keybinding_settings = new GLib.Settings ("io.elementary.desktop.wm.keybindings"); display.add_keybinding ("switch-to-workspace-first", keybinding_settings, Meta.KeyBindingFlags.IGNORE_AUTOREPEAT, (Meta.KeyHandlerFunc) handle_switch_to_workspace_end); display.add_keybinding ("switch-to-workspace-last", keybinding_settings, Meta.KeyBindingFlags.IGNORE_AUTOREPEAT, (Meta.KeyHandlerFunc) handle_switch_to_workspace_end); diff --git a/src/Zoom.vala b/src/Zoom.vala index fa708cc5d..c3c27f5be 100644 --- a/src/Zoom.vala +++ b/src/Zoom.vala @@ -24,7 +24,7 @@ public class Gala.Zoom : Object { Object (wm: wm); unowned var display = wm.get_display (); - var schema = new GLib.Settings (Config.SCHEMA + ".keybindings"); + var schema = new GLib.Settings ("io.elementary.desktop.wm.keybindings"); display.add_keybinding ("zoom-in", schema, Meta.KeyBindingFlags.NONE, (Meta.KeyHandlerFunc) zoom_in); display.add_keybinding ("zoom-out", schema, Meta.KeyBindingFlags.NONE, (Meta.KeyHandlerFunc) zoom_out);