aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.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/Toolbar.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/Toolbar.hh')
-rw-r--r--src/Toolbar.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Toolbar.hh b/src/Toolbar.hh
index f631c41..ed77335 100644
--- a/src/Toolbar.hh
+++ b/src/Toolbar.hh
@@ -68,7 +68,9 @@ public:
68 BOTTOMLEFT, BOTTOMCENTER, BOTTOMRIGHT, 68 BOTTOMLEFT, BOTTOMCENTER, BOTTOMRIGHT,
69 // left and right placement 69 // left and right placement
70 LEFTBOTTOM, LEFTCENTER, LEFTTOP, 70 LEFTBOTTOM, LEFTCENTER, LEFTTOP,
71 RIGHTBOTTOM, RIGHTCENTER, RIGHTTOP 71 RIGHTBOTTOM, RIGHTCENTER, RIGHTTOP,
72
73 DEFAULT = BOTTOMRIGHT
72 }; 74 };
73 75
74 /// Create a toolbar on the screen with specific width 76 /// Create a toolbar on the screen with specific width