aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IconbarTool.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index f2ed082..f352237 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -72,15 +72,11 @@ void FbTk::Resource<FbTk::Container::Alignment>::setDefaultValue() {
72 72
73template<> 73template<>
74string FbTk::Resource<FbTk::Container::Alignment>::getString() const { 74string FbTk::Resource<FbTk::Container::Alignment>::getString() const {
75 switch (m_value) { 75 if (m_value == FbTk::Container::LEFT)
76 case FbTk::Container::LEFT:
77 return string("Left"); 76 return string("Left");
78 case FbTk::Container::RIGHT: 77 if (m_value == FbTk::Container::RIGHT)
79 return string("Right"); 78 return string("Right");
80 case FbTk::Container::RELATIVE: 79 return string("Relative");
81 return string("Relative");
82 }
83 return string("Left");
84} 80}
85 81
86template<> 82template<>
@@ -261,7 +257,7 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent,
261 m_mode("none"), 257 m_mode("none"),
262 m_rc_mode(screen.resourceManager(), "{static groups} (workspace)", 258 m_rc_mode(screen.resourceManager(), "{static groups} (workspace)",
263 screen.name() + ".iconbar.mode", screen.altName() + ".Iconbar.Mode"), 259 screen.name() + ".iconbar.mode", screen.altName() + ".Iconbar.Mode"),
264 m_rc_alignment(screen.resourceManager(), FbTk::Container::LEFT, 260 m_rc_alignment(screen.resourceManager(), FbTk::Container::RELATIVE,
265 screen.name() + ".iconbar.alignment", screen.altName() + ".Iconbar.Alignment"), 261 screen.name() + ".iconbar.alignment", screen.altName() + ".Iconbar.Alignment"),
266 m_rc_client_width(screen.resourceManager(), 70, 262 m_rc_client_width(screen.resourceManager(), 70,
267 screen.name() + ".iconbar.iconWidth", screen.altName() + ".Iconbar.IconWidth"), 263 screen.name() + ".iconbar.iconWidth", screen.altName() + ".Iconbar.IconWidth"),