gnome-control-center r8596 - trunk/libwindow-settings



Author: cosimoc
Date: Thu Mar 27 17:15:19 2008
New Revision: 8596
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8596&view=rev

Log:
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.


Modified:
   trunk/libwindow-settings/ChangeLog
   trunk/libwindow-settings/metacity-window-manager.c

Modified: trunk/libwindow-settings/metacity-window-manager.c
==============================================================================
--- trunk/libwindow-settings/metacity-window-manager.c	(original)
+++ trunk/libwindow-settings/metacity-window-manager.c	Thu Mar 27 17:15:19 2008
@@ -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 @@
                 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 @@
                         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 @@
 {
         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") }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]