diff options
author | markt <markt> | 2006-08-02 22:02:31 (GMT) |
---|---|---|
committer | markt <markt> | 2006-08-02 22:02:31 (GMT) |
commit | 00d862724a5dae43dbf1cbe4378fb846218fb3c3 (patch) | |
tree | 5538b87535f1115dad8aed5950325eaa1ee17f84 /src/IconbarTool.cc | |
parent | 9053e772db1ea9ab2b7a1baa88ba81fed2577f64 (diff) | |
download | fluxbox_pavel-00d862724a5dae43dbf1cbe4378fb846218fb3c3.zip fluxbox_pavel-00d862724a5dae43dbf1cbe4378fb846218fb3c3.tar.bz2 |
rename session.screen*.iconbar.deiconifyMode to session.screen0.userFollowModel
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 4ce600f..413aebf 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc | |||
@@ -74,39 +74,6 @@ void FbTk::Resource<IconbarTool::Mode>::setFromString(const char *strval) { | |||
74 | } | 74 | } |
75 | 75 | ||
76 | template<> | 76 | template<> |
77 | void FbTk::Resource<IconbarTool::DeiconifyMode>::setDefaultValue() { | ||
78 | m_value = IconbarTool::FOLLOW; | ||
79 | } | ||
80 | |||
81 | template<> | ||
82 | void FbTk::Resource<IconbarTool::DeiconifyMode>::setFromString(const char* strval) { | ||
83 | if (strncasecmp(strval, "Current", strlen("Current")) == 0) | ||
84 | m_value = IconbarTool::CURRENT; | ||
85 | else if (strncasecmp(strval, "Follow", strlen("Follow")) == 0) | ||
86 | m_value = IconbarTool::FOLLOW; | ||
87 | else if (strncasecmp(strval, "SemiFollow", strlen("SemiFollow")) == 0) | ||
88 | m_value = IconbarTool::SEMIFOLLOW; | ||
89 | else | ||
90 | setDefaultValue(); | ||
91 | } | ||
92 | |||
93 | template<> | ||
94 | std::string FbTk::Resource<IconbarTool::DeiconifyMode>::getString() const { | ||
95 | switch (m_value) { | ||
96 | case IconbarTool::SEMIFOLLOW: | ||
97 | return std::string("SemiFollow"); | ||
98 | break; | ||
99 | case IconbarTool::CURRENT: | ||
100 | return std::string("Current"); | ||
101 | break; | ||
102 | case IconbarTool::FOLLOW: | ||
103 | default: | ||
104 | return std::string("Follow"); | ||
105 | break; | ||
106 | }; | ||
107 | } | ||
108 | |||
109 | template<> | ||
110 | void FbTk::Resource<IconbarTool::WheelMode>::setDefaultValue() { | 77 | void FbTk::Resource<IconbarTool::WheelMode>::setDefaultValue() { |
111 | m_value = IconbarTool::SCREEN; | 78 | m_value = IconbarTool::SCREEN; |
112 | } | 79 | } |
@@ -373,9 +340,6 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, BScr | |||
373 | m_empty_pm(0), | 340 | m_empty_pm(0), |
374 | m_rc_mode(screen.resourceManager(), WORKSPACE, | 341 | m_rc_mode(screen.resourceManager(), WORKSPACE, |
375 | screen.name() + ".iconbar.mode", screen.altName() + ".Iconbar.Mode"), | 342 | screen.name() + ".iconbar.mode", screen.altName() + ".Iconbar.Mode"), |
376 | m_deiconify_mode(screen.resourceManager(), FOLLOW, | ||
377 | screen.name() + ".iconbar.deiconifyMode", | ||
378 | screen.name() + ".iconbar.DeiconifyMode"), | ||
379 | m_wheel_mode(screen.resourceManager(), OFF, | 343 | m_wheel_mode(screen.resourceManager(), OFF, |
380 | screen.name() + ".iconbar.wheelMode", | 344 | screen.name() + ".iconbar.wheelMode", |
381 | screen.name() + ".iconbar.WheelMode"), | 345 | screen.name() + ".iconbar.WheelMode"), |