aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-10 12:00:09 (GMT)
committerfluxgen <fluxgen>2003-07-10 12:00:09 (GMT)
commit0e1a719781b0a28ddf3f6d8dbdd10a963fef9bfa (patch)
tree1e987b1ebedf47d2b8db662977abc6d943ff4b7e /src/ToolbarTheme.cc
parentf0700416fd670bf40c261ef0c9fd33f14245174f (diff)
downloadfluxbox-0e1a719781b0a28ddf3f6d8dbdd10a963fef9bfa.zip
fluxbox-0e1a719781b0a28ddf3f6d8dbdd10a963fef9bfa.tar.bz2
added shape
Diffstat (limited to 'src/ToolbarTheme.cc')
-rw-r--r--src/ToolbarTheme.cc21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc
index 61df3d4..2797c1e 100644
--- a/src/ToolbarTheme.cc
+++ b/src/ToolbarTheme.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: ToolbarTheme.cc,v 1.3 2003/06/24 16:26:56 fluxgen Exp $ 22// $Id: ToolbarTheme.cc,v 1.4 2003/07/10 12:00:09 fluxgen Exp $
23 23
24#include "ToolbarTheme.hh" 24#include "ToolbarTheme.hh"
25 25
@@ -27,6 +27,22 @@
27#include <iostream> 27#include <iostream>
28using namespace std; 28using namespace std;
29 29
30template<>
31void FbTk::ThemeItem<bool>::load() { }
32
33template<>
34void FbTk::ThemeItem<bool>::setDefaultValue() {
35 *(*this) = false;
36}
37
38template<>
39void FbTk::ThemeItem<bool>::setFromString(char const *strval) {
40 if (strcasecmp(strval, "true")==0)
41 *(*this) = true;
42 else
43 *(*this) = false;
44}
45
30ToolbarTheme::ToolbarTheme(int screen_num): 46ToolbarTheme::ToolbarTheme(int screen_num):
31 FbTk::Theme(screen_num), 47 FbTk::Theme(screen_num),
32 m_label_textcolor(*this, 48 m_label_textcolor(*this,
@@ -51,7 +67,8 @@ ToolbarTheme::ToolbarTheme(int screen_num):
51 m_justify(*this, "toolbar.justify", "Toolbar.Justify"), 67 m_justify(*this, "toolbar.justify", "Toolbar.Justify"),
52 m_border_width(*this, "toolbar.borderWidth", "Toolbar.BorderWidth"), 68 m_border_width(*this, "toolbar.borderWidth", "Toolbar.BorderWidth"),
53 m_bevel_width(*this, "toolbar.bevelWidth", "Toolbar.BevelWidth"), 69 m_bevel_width(*this, "toolbar.bevelWidth", "Toolbar.BevelWidth"),
54 m_display(FbTk::App::instance()->display()){ 70 m_shape(*this, "toolbar.shape", "Toolbar.Shape"),
71 m_display(FbTk::App::instance()->display()) {
55 72
56 Window rootwindow = RootWindow(m_display, screen_num); 73 Window rootwindow = RootWindow(m_display, screen_num);
57 74