From 0d18eba6935d9f589103b725e82d2a45ded59f18 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 16 Aug 2003 12:23:17 +0000 Subject: default valueS --- src/FbTk/MenuTheme.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/FbTk/MenuTheme.cc b/src/FbTk/MenuTheme.cc index 7035dca..c83c480 100644 --- a/src/FbTk/MenuTheme.cc +++ b/src/FbTk/MenuTheme.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: MenuTheme.cc,v 1.8 2003/07/19 03:59:56 rathnor Exp $ +// $Id: MenuTheme.cc,v 1.9 2003/08/16 12:23:17 fluxgen Exp $ #include "MenuTheme.hh" @@ -54,7 +54,10 @@ MenuTheme::MenuTheme(int screen_num): m_display(FbTk::App::instance()->display()), m_alpha(255) { - + // set default values + *m_border_width = 0; + *m_bevel_width = 0; + Window rootwindow = RootWindow(m_display, screen_num); XGCValues gcv; @@ -86,7 +89,12 @@ MenuTheme::~MenuTheme() { } void MenuTheme::reconfigTheme() { - + // clamp to "normal" size + if (*m_bevel_width > 20) + *m_bevel_width = 20; + if (*m_border_width > 20) + *m_border_width = 20; + XGCValues gcv; unsigned long gc_value_mask = GCForeground; -- cgit v0.11.2