summaryrefslogtreecommitdiff
path: root/libwindow-settings
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2008-03-27 17:15:19 +0000
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-03-27 17:15:19 +0000
commita0dcc1366aec45d154f3eab4c3582de60d6cb298 (patch)
treeaf461f732d401423e2b8af6adaf6da0a843cb917 /libwindow-settings
parent7cd223066a447e0f8c9d027d5b331f93e617a06b (diff)
downloadgnome-control-center-a0dcc1366aec45d154f3eab4c3582de60d6cb298.tar.gz
add "Maximize Vertically" and "Maximize Horizontally" to possible
2008-03-27 Cosimo Cecchi <cosimoc@gnome.org> * 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
Diffstat (limited to 'libwindow-settings')
-rw-r--r--libwindow-settings/ChangeLog7
-rw-r--r--libwindow-settings/metacity-window-manager.c14
2 files changed, 21 insertions, 0 deletions
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 <cosimoc@gnome.org>
+
+ * 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 <jensgr@gmx.net>
* 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") }