From a0dcc1366aec45d154f3eab4c3582de60d6cb298 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 27 Mar 2008 17:15:19 +0000 Subject: [PATCH] add "Maximize Vertically" and "Maximize Horizontally" to possible 2008-03-27 Cosimo Cecchi * metacity-window-manager.c: (metacity_change_settings), (metacity_get_settings), (metacity_get_double_click_actions): add "Maximize Vertically" and "Maximize Horizontally" to possible double-click actions. Closes bug #329503. svn path=/trunk/; revision=8596 --- libwindow-settings/ChangeLog | 7 +++++++ libwindow-settings/metacity-window-manager.c | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/libwindow-settings/ChangeLog b/libwindow-settings/ChangeLog index 0a39622a2..e967a18d3 100644 --- a/libwindow-settings/ChangeLog +++ b/libwindow-settings/ChangeLog @@ -1,3 +1,10 @@ +2008-03-27 Cosimo Cecchi + + * metacity-window-manager.c: (metacity_change_settings), + (metacity_get_settings), (metacity_get_double_click_actions): + add "Maximize Vertically" and "Maximize Horizontally" to possible + double-click actions. Closes bug #329503. + 2007-08-12 Jens Granseuer * metacity-window-manager.c: (metacity_change_settings), diff --git a/libwindow-settings/metacity-window-manager.c b/libwindow-settings/metacity-window-manager.c index 0511bc400..87e0241ef 100644 --- a/libwindow-settings/metacity-window-manager.c +++ b/libwindow-settings/metacity-window-manager.c @@ -44,6 +44,8 @@ enum { DOUBLE_CLICK_MAXIMIZE, + DOUBLE_CLICK_MAXIMIZE_VERTICALLY, + DOUBLE_CLICK_MAXIMIZE_HORIZONTALLY, DOUBLE_CLICK_MINIMIZE, DOUBLE_CLICK_SHADE, DOUBLE_CLICK_NONE @@ -211,6 +213,12 @@ metacity_change_settings (GnomeWindowManager *wm, case DOUBLE_CLICK_MAXIMIZE: action = "toggle_maximize"; break; + case DOUBLE_CLICK_MAXIMIZE_VERTICALLY: + action = "toggle_maximize_vert"; + break; + case DOUBLE_CLICK_MAXIMIZE_HORIZONTALLY: + action = "toggle_maximize_horiz"; + break; case DOUBLE_CLICK_MINIMIZE: action = "minimize"; break; @@ -362,6 +370,10 @@ metacity_get_settings (GnomeWindowManager *wm, settings->double_click_action = DOUBLE_CLICK_SHADE; else if (strcmp (str, "toggle_maximize") == 0) settings->double_click_action = DOUBLE_CLICK_MAXIMIZE; + else if (strcmp (str, "toggle_maximize_horiz") == 0) + settings->double_click_action = DOUBLE_CLICK_MAXIMIZE_HORIZONTALLY; + else if (strcmp (str, "toggle_maximize_vert") == 0) + settings->double_click_action = DOUBLE_CLICK_MAXIMIZE_VERTICALLY; else if (strcmp (str, "minimize") == 0) settings->double_click_action = DOUBLE_CLICK_MINIMIZE; else if (strcmp (str, "none") == 0) @@ -388,6 +400,8 @@ metacity_get_double_click_actions (GnomeWindowManager *wm, { static GnomeWMDoubleClickAction actions[] = { { DOUBLE_CLICK_MAXIMIZE, N_("Maximize") }, + { DOUBLE_CLICK_MAXIMIZE_VERTICALLY, N_("Maximize Vertically") }, + { DOUBLE_CLICK_MAXIMIZE_HORIZONTALLY, N_("Maximize Horizontally") }, { DOUBLE_CLICK_MINIMIZE, N_("Minimize") }, { DOUBLE_CLICK_SHADE, N_("Roll up") }, { DOUBLE_CLICK_NONE, N_("None") }