diff options
Diffstat (limited to 'src/ToolbarTheme.cc')
-rw-r--r-- | src/ToolbarTheme.cc | 21 |
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> |
28 | using namespace std; | 28 | using namespace std; |
29 | 29 | ||
30 | template<> | ||
31 | void FbTk::ThemeItem<bool>::load() { } | ||
32 | |||
33 | template<> | ||
34 | void FbTk::ThemeItem<bool>::setDefaultValue() { | ||
35 | *(*this) = false; | ||
36 | } | ||
37 | |||
38 | template<> | ||
39 | void FbTk::ThemeItem<bool>::setFromString(char const *strval) { | ||
40 | if (strcasecmp(strval, "true")==0) | ||
41 | *(*this) = true; | ||
42 | else | ||
43 | *(*this) = false; | ||
44 | } | ||
45 | |||
30 | ToolbarTheme::ToolbarTheme(int screen_num): | 46 | ToolbarTheme::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 | ||