aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-17 12:44:58 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-17 12:44:58 (GMT)
commit041d586972db4da170123f5468d7b11d4eda8ae5 (patch)
tree2481268e38587c324939a7989ce2fae51743a926 /src/FbWinFrame.hh
parent0b1f160830f048ed6d499b774b5addab059f9917 (diff)
downloadfluxbox_pavel-041d586972db4da170123f5468d7b11d4eda8ae5.zip
fluxbox_pavel-041d586972db4da170123f5468d7b11d4eda8ae5.tar.bz2
code simplification by reducing if-else hell
a lot of the parsing-related and menu-building stuff is just plain stupid boiler plate code. putting the data into a const array separates the boiler plate data from the actual code.
Diffstat (limited to 'src/FbWinFrame.hh')
-rw-r--r--src/FbWinFrame.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh
index 80791ba..7cdf9bb 100644
--- a/src/FbWinFrame.hh
+++ b/src/FbWinFrame.hh
@@ -67,7 +67,9 @@ public:
67 BOTTOMLEFT, BOTTOM, BOTTOMRIGHT, 67 BOTTOMLEFT, BOTTOM, BOTTOMRIGHT,
68 // left and right placement 68 // left and right placement
69 LEFTBOTTOM, LEFT, LEFTTOP, 69 LEFTBOTTOM, LEFT, LEFTTOP,
70 RIGHTBOTTOM, RIGHT, RIGHTTOP 70 RIGHTBOTTOM, RIGHT, RIGHTTOP,
71
72 DEFAULT = TOPLEFT
71 }; 73 };
72 74
73 /// create a top level window 75 /// create a top level window