From 3496a1e198a79721c69fcf1b08380af94137b0f5 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 16 Aug 2003 10:01:57 +0000 Subject: default values --- src/RootTheme.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/RootTheme.cc b/src/RootTheme.cc index 617cd8d..b174d25 100644 --- a/src/RootTheme.cc +++ b/src/RootTheme.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: RootTheme.cc,v 1.2 2003/04/28 00:38:42 fluxgen Exp $ +// $Id: RootTheme.cc,v 1.3 2003/08/16 10:01:57 fluxgen Exp $ #include "RootTheme.hh" @@ -35,6 +35,10 @@ RootTheme::RootTheme(int screen_num, std::string &screen_root_command): m_border_color(*this, "borderColor", "BorderColor"), m_screen_root_command(screen_root_command) { + *m_border_width = 0; + *m_bevel_width = 0; + *m_handle_width = 0; + XGCValues gcv; Display *disp = FbTk::App::instance()->display(); gcv.foreground = WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num); @@ -51,6 +55,16 @@ RootTheme::~RootTheme() { } void RootTheme::reconfigTheme() { + // clamp values to "normal" size + if (*m_border_width > 20) + *m_border_width = 20; + + if (*m_bevel_width > 20) + *m_bevel_width = 20; + + if (*m_handle_width > 20) + *m_handle_width = 20; + // override resource root command? if (m_screen_root_command == "") { // do root command -- cgit v0.11.2