diff options
author | fluxgen <fluxgen> | 2003-08-16 11:30:48 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-16 11:30:48 (GMT) |
commit | e643be0e49de54eac9c4bf4889d33bbbb5868a03 (patch) | |
tree | 33fa06674263fa2c8fe20f78a7cbceb5500efcc4 | |
parent | e327629342a352d9b0303d53c03886de4eb7be2b (diff) | |
download | fluxbox_lack-e643be0e49de54eac9c4bf4889d33bbbb5868a03.zip fluxbox_lack-e643be0e49de54eac9c4bf4889d33bbbb5868a03.tar.bz2 |
clamp some values
-rw-r--r-- | src/ToolbarTheme.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc index 6067264..233a481 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.8 2003/08/13 15:12:39 fluxgen Exp $ | 22 | // $Id: ToolbarTheme.cc,v 1.9 2003/08/16 11:30:48 fluxgen Exp $ |
23 | 23 | ||
24 | #include "ToolbarTheme.hh" | 24 | #include "ToolbarTheme.hh" |
25 | 25 | ||
@@ -51,9 +51,10 @@ ToolbarTheme::ToolbarTheme(int screen_num): | |||
51 | m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), | 51 | m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), |
52 | m_alpha(*this, "toolbar.alpha", "Toolbar.Alpha"), | 52 | m_alpha(*this, "toolbar.alpha", "Toolbar.Alpha"), |
53 | m_display(FbTk::App::instance()->display()) { | 53 | m_display(FbTk::App::instance()->display()) { |
54 | 54 | // set default value | |
55 | *m_bevel_width = 0; | 55 | *m_bevel_width = 0; |
56 | *m_alpha = 255; | 56 | *m_alpha = 255; |
57 | *m_shape = Shape::NONE; | ||
57 | 58 | ||
58 | } | 59 | } |
59 | 60 | ||
@@ -66,4 +67,7 @@ void ToolbarTheme::reconfigTheme() { | |||
66 | *m_alpha = 255; | 67 | *m_alpha = 255; |
67 | else if (*m_alpha < 0) | 68 | else if (*m_alpha < 0) |
68 | *m_alpha = 0; | 69 | *m_alpha = 0; |
70 | |||
71 | if (*m_bevel_width > 20) | ||
72 | *m_bevel_width = 20; | ||
69 | } | 73 | } |