summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-31 15:20:55 +0100
committerStefano Karapetsas <[email protected]>2012-10-31 15:20:55 +0100
commit366e3b67f24f3f93a47222aeae16173a9039bd16 (patch)
tree19a0d3fbbaa2448feb7712d0c2f6cd0e98ab96cd
parent545ba2f33c2cf0bdd3842f0ff823010ee7f9e05b (diff)
downloadmarco-366e3b67f24f3f93a47222aeae16173a9039bd16.tar.bz2
marco-366e3b67f24f3f93a47222aeae16173a9039bd16.tar.xz
set maximum workspaces number to 16
-rw-r--r--src/core/prefs.c2
-rw-r--r--src/org.mate.marco.gschema.xml1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 7ef9db3c..e14e5e2b 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -31,7 +31,7 @@
#include <string.h>
#include <stdlib.h>
-#define MAX_REASONABLE_WORKSPACES 36
+#define MAX_REASONABLE_WORKSPACES 16
#define MAX_COMMANDS (32 + NUM_EXTRA_COMMANDS)
#define NUM_EXTRA_COMMANDS 2
diff --git a/src/org.mate.marco.gschema.xml b/src/org.mate.marco.gschema.xml
index b4bed502..8cb26498 100644
--- a/src/org.mate.marco.gschema.xml
+++ b/src/org.mate.marco.gschema.xml
@@ -111,6 +111,7 @@
<description>A font description string describing a font for window titlebars. The size from the description will only be used if the titlebar_font_size option is set to 0. Also, this option is disabled if the titlebar_uses_desktop_font option is set to true.</description>
</key>
<key name="num-workspaces" type="i">
+ <range min="1" max="16"/>
<default>4</default>
<summary>Number of workspaces</summary>
<description>Number of workspaces. Must be more than zero, and has a fixed maximum to prevent making the desktop unusable by accidentally asking for too many workspaces.</description>