diff options
author | rathnor <rathnor> | 2004-04-26 15:04:37 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-04-26 15:04:37 (GMT) |
commit | d4a871785130ab0d6533bef4f1ec55c4cfd3b8df (patch) | |
tree | f07025c5527733c88043ca61316c0af62daf598d /src/FbTk/Theme.cc | |
parent | ef6bf03ca19c0c96943894f9d0f0db9bc0bd58fc (diff) | |
download | fluxbox-d4a871785130ab0d6533bef4f1ec55c4cfd3b8df.zip fluxbox-d4a871785130ab0d6533bef4f1ec55c4cfd3b8df.tar.bz2 |
toolbar themeing fixes
Diffstat (limited to 'src/FbTk/Theme.cc')
-rw-r--r-- | src/FbTk/Theme.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc index 224ae6f..f9c3366 100644 --- a/src/FbTk/Theme.cc +++ b/src/FbTk/Theme.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Theme.cc,v 1.25 2004/01/12 20:24:06 fluxgen Exp $ | 22 | // $Id: Theme.cc,v 1.26 2004/04/26 15:04:37 rathnor Exp $ |
23 | 23 | ||
24 | #include "Theme.hh" | 24 | #include "Theme.hh" |
25 | 25 | ||
@@ -157,11 +157,10 @@ bool ThemeManager::loadItem(ThemeItem_base &resource) { | |||
157 | bool ThemeManager::loadItem(ThemeItem_base &resource, const std::string &name, const std::string &alt_name) { | 157 | bool ThemeManager::loadItem(ThemeItem_base &resource, const std::string &name, const std::string &alt_name) { |
158 | XrmValue value; | 158 | XrmValue value; |
159 | char *value_type; | 159 | char *value_type; |
160 | |||
161 | if (XrmGetResource(*m_database, name.c_str(), | 160 | if (XrmGetResource(*m_database, name.c_str(), |
162 | alt_name.c_str(), &value_type, &value)) { | 161 | alt_name.c_str(), &value_type, &value)) { |
163 | resource.setFromString(value.addr); | 162 | resource.setFromString(value.addr); |
164 | resource.load(); // load additional stuff by the ThemeItem | 163 | resource.load(&name, &alt_name); // load additional stuff by the ThemeItem |
165 | } else | 164 | } else |
166 | return false; | 165 | return false; |
167 | 166 | ||
@@ -171,11 +170,10 @@ bool ThemeManager::loadItem(ThemeItem_base &resource, const std::string &name, c | |||
171 | std::string ThemeManager::resourceValue(const std::string &name, const std::string &altname) { | 170 | std::string ThemeManager::resourceValue(const std::string &name, const std::string &altname) { |
172 | XrmValue value; | 171 | XrmValue value; |
173 | char *value_type; | 172 | char *value_type; |
174 | |||
175 | if (*m_database != 0 && XrmGetResource(*m_database, name.c_str(), | 173 | if (*m_database != 0 && XrmGetResource(*m_database, name.c_str(), |
176 | altname.c_str(), &value_type, &value) && value.addr != 0) { | 174 | altname.c_str(), &value_type, &value) && value.addr != 0) |
177 | return string(value.addr); | 175 | return string(value.addr); |
178 | } | 176 | |
179 | return ""; | 177 | return ""; |
180 | } | 178 | } |
181 | 179 | ||