diff options
author | mbkma <[email protected]> | 2021-04-13 16:24:25 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-04-29 22:10:33 +0200 |
commit | a1eaebb20fdc2ce0786362c9477baa846d295aeb (patch) | |
tree | 28a475092f0f8b2508399c1eb624c186b0274dda /capplets/windows/mate-window-properties.c | |
parent | 6e0fc53c78d784aef2336a671a516e003f4ba359 (diff) | |
download | mate-control-center-a1eaebb20fdc2ce0786362c9477baa846d295aeb.tar.bz2 mate-control-center-a1eaebb20fdc2ce0786362c9477baa846d295aeb.tar.xz |
windows-applet: csd windows respect titlebar button layout
Diffstat (limited to 'capplets/windows/mate-window-properties.c')
-rw-r--r-- | capplets/windows/mate-window-properties.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |