[gnome-control-center] multitasking: Use Mutter settings for dynamic workspaces
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] multitasking: Use Mutter settings for dynamic workspaces
- Date: Fri, 13 Aug 2021 21:40:30 +0000 (UTC)
commit ee355ee7277eb292931bafbf578416fa009c84a5
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Aug 13 18:39:57 2021 -0300
multitasking: Use Mutter settings for dynamic workspaces
The overrides weren't meant to be used like that.
panels/multitasking/cc-multitasking-panel.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/panels/multitasking/cc-multitasking-panel.c b/panels/multitasking/cc-multitasking-panel.c
index 6a3177fe9..1523e35b1 100644
--- a/panels/multitasking/cc-multitasking-panel.c
+++ b/panels/multitasking/cc-multitasking-panel.c
@@ -31,7 +31,6 @@ struct _CcMultitaskingPanel
GSettings *interface_settings;
GSettings *mutter_settings;
- GSettings *overrides_settings;
GSettings *shell_settings;
GSettings *wm_settings;
@@ -56,7 +55,6 @@ cc_multitasking_panel_finalize (GObject *object)
g_clear_object (&self->interface_settings);
g_clear_object (&self->mutter_settings);
- g_clear_object (&self->overrides_settings);
g_clear_object (&self->shell_settings);
g_clear_object (&self->wm_settings);
@@ -117,14 +115,12 @@ cc_multitasking_panel_init (CcMultitaskingPanel *self)
"active",
G_SETTINGS_BIND_DEFAULT);
- self->overrides_settings = g_settings_new ("org.gnome.shell.overrides");
-
- if (g_settings_get_boolean (self->overrides_settings, "dynamic-workspaces"))
+ if (g_settings_get_boolean (self->mutter_settings, "dynamic-workspaces"))
gtk_toggle_button_set_active (self->dynamic_workspaces_radio, TRUE);
else
gtk_toggle_button_set_active (self->fixed_workspaces_radio, TRUE);
- g_settings_bind (self->overrides_settings,
+ g_settings_bind (self->mutter_settings,
"dynamic-workspaces",
self->dynamic_workspaces_radio,
"active",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]