aboutsummaryrefslogtreecommitdiff
path: root/src/ToolFactory.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2007-01-06 07:38:04 (GMT)
committersimonb <simonb>2007-01-06 07:38:04 (GMT)
commit1f7b12cc494e8b492bd87207246265070b70d578 (patch)
tree7923939f792e790913548f684cf7ea57095c7626 /src/ToolFactory.cc
parent2e438fde2c4c6f660649c69f05681d50c72f849e (diff)
downloadfluxbox-1f7b12cc494e8b492bd87207246265070b70d578.zip
fluxbox-1f7b12cc494e8b492bd87207246265070b70d578.tar.bz2
move triangle drawing into FbDrawable
Make MenuItem triangles proportional
Diffstat (limited to 'src/ToolFactory.cc')
-rw-r--r--src/ToolFactory.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc
index 242b3a0..798072b 100644
--- a/src/ToolFactory.cc
+++ b/src/ToolFactory.cc
@@ -112,9 +112,9 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &
112 return 0; 112 return 0;
113 113
114 // TODO maybe direction of arrows should depend on toolbar layout ? 114 // TODO maybe direction of arrows should depend on toolbar layout ?
115 ArrowButton::Type arrow_type = ArrowButton::LEFT; 115 FbTk::FbDrawable::TriangleType arrow_type = FbTk::FbDrawable::UP;
116 if (name == "nextworkspace") 116 if (name == "nextworkspace")
117 arrow_type = ArrowButton::RIGHT; 117 arrow_type = FbTk::FbDrawable::DOWN;
118 118
119 ArrowButton *win = new ArrowButton(arrow_type, parent, 119 ArrowButton *win = new ArrowButton(arrow_type, parent,
120 0, 0, 120 0, 0,
@@ -131,9 +131,9 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &
131 if (*cmd == 0) // we need a command 131 if (*cmd == 0) // we need a command
132 return 0; 132 return 0;
133 133
134 ArrowButton::Type arrow_type = ArrowButton::LEFT; 134 FbTk::FbDrawable::TriangleType arrow_type = FbTk::FbDrawable::LEFT;
135 if (name == "nextwindow") 135 if (name == "nextwindow")
136 arrow_type = ArrowButton::RIGHT; 136 arrow_type = FbTk::FbDrawable::RIGHT;
137 137
138 ArrowButton *win = new ArrowButton(arrow_type, parent, 138 ArrowButton *win = new ArrowButton(arrow_type, parent,
139 0, 0, 139 0, 0,