From a1eaebb20fdc2ce0786362c9477baa846d295aeb Mon Sep 17 00:00:00 2001 From: mbkma Date: Tue, 13 Apr 2021 16:24:25 +0200 Subject: windows-applet: csd windows respect titlebar button layout --- capplets/windows/mate-window-properties.c | 6 ++++++ capplets/windows/window-properties.ui | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'capplets') diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c index 501569d0..90b46f9c 100644 --- a/capplets/windows/mate-window-properties.c +++ b/capplets/windows/mate-window-properties.c @@ -40,6 +40,9 @@ #include "capplet-util.h" #define MARCO_SCHEMA "org.mate.Marco.general" +#define INTERFACE_SCHEMA "org.mate.interface" + +#define GTK_BUTTON_LAYOUT_KEY "gtk-decoration-layout" #define MARCO_CENTER_NEW_WINDOWS_KEY "center-new-windows" #define MARCO_ALLOW_TILING_KEY "allow-tiling" @@ -122,6 +125,7 @@ static GtkWidget *titlebar_layout_optionmenu; static GtkWidget *compositing_checkbutton; static GSettings *marco_settings; +static GSettings *interface_settings; static MouseClickModifier *mouse_modifiers = NULL; static int n_mouse_modifiers = 0; @@ -415,6 +419,7 @@ main (int argc, char **argv) /* Load settings */ marco_settings = g_settings_new (MARCO_SCHEMA); + interface_settings = g_settings_new (INTERFACE_SCHEMA); reload_mouse_modifiers (); @@ -504,6 +509,7 @@ main (int argc, char **argv) gtk_main (); g_object_unref (marco_settings); + g_object_unref (interface_settings); g_free (custom_titlebar_button_layout); diff --git a/capplets/windows/window-properties.ui b/capplets/windows/window-properties.ui index 1426188b..22b61f0f 100644 --- a/capplets/windows/window-properties.ui +++ b/capplets/windows/window-properties.ui @@ -671,7 +671,6 @@ Author: Robert Buj True False - start _Position of titlebar buttons: True titlebar_layout_optionmenu @@ -710,14 +709,14 @@ Author: Robert Buj False - False + True 2 False - False + True 2 -- cgit v1.2.1