diff options
author | Stefano Karapetsas <[email protected]> | 2014-02-18 13:36:41 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-02-18 13:36:41 +0100 |
commit | b0ba7d51e7da6a775d0d61d830b87700e17fd196 (patch) | |
tree | 2660786fabb439b756ee98f9fbe29ec61a70929f /capplets/windows/mate-window-properties.c | |
parent | ebc5e95401925ff2b727f40d00ca3bcb464ba652 (diff) | |
download | mate-control-center-b0ba7d51e7da6a775d0d61d830b87700e17fd196.tar.bz2 mate-control-center-b0ba7d51e7da6a775d0d61d830b87700e17fd196.tar.xz |
windows: Add option to enable side by side tiling
Diffstat (limited to 'capplets/windows/mate-window-properties.c')
-rw-r--r-- | capplets/windows/mate-window-properties.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c index 6e3bb77e..b2697bd6 100644 --- a/capplets/windows/mate-window-properties.c +++ b/capplets/windows/mate-window-properties.c @@ -49,6 +49,7 @@ #define MARCO_DOUBLE_CLICK_TITLEBAR_KEY "action-double-click-titlebar" #define MARCO_COMPOSITING_MANAGER_KEY "compositing-manager" #define MARCO_COMPOSITING_FAST_ALT_TAB_KEY "compositing-fast-alt-tab" +#define MARCO_SIDE_BY_SIDE_TILING_KEY "side-by-side-tiling" /* keep following enums in sync with marco */ enum @@ -80,6 +81,7 @@ typedef struct static GtkWidget *dialog_win; static GObject *compositing_checkbutton; static GObject *compositing_fast_alt_tab_checkbutton; +static GObject *side_by_side_tiling_checkbutton; static GObject *focus_mode_checkbutton; static GObject *autoraise_checkbutton; static GObject *autoraise_delay_slider; @@ -285,6 +287,7 @@ main (int argc, char **argv) dialog_win = GTK_WIDGET (gtk_builder_get_object (builder, "main-dialog")); compositing_checkbutton = gtk_builder_get_object (builder, "compositing-manager-checkbutton"); compositing_fast_alt_tab_checkbutton = gtk_builder_get_object (builder, "compositing-fast-alt-tab-checkbutton"); + side_by_side_tiling_checkbutton = gtk_builder_get_object (builder, "side-by-side-tiling"); focus_mode_checkbutton = gtk_builder_get_object (builder, "focus-mode-checkbutton"); autoraise_checkbutton = gtk_builder_get_object (builder, "autoraise-checkbutton"); autoraise_delay_slider = gtk_builder_get_object (builder, "autoraise-delay-slider"); @@ -333,6 +336,12 @@ main (int argc, char **argv) "active", G_SETTINGS_BIND_DEFAULT); + g_settings_bind (marco_settings, + MARCO_SIDE_BY_SIDE_TILING_KEY, + side_by_side_tiling_checkbutton, + "active", + G_SETTINGS_BIND_DEFAULT); + g_signal_connect (focus_mode_checkbutton, "toggled", G_CALLBACK (mouse_focus_toggled_callback), NULL); g_signal_connect (marco_settings, "changed::" MARCO_FOCUS_KEY, |