From 7e320b7d315a5ae1acf75c0d685731aaa6c2b296 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 12 Sep 2003 23:33:13 +0000 Subject: removed bevel width and handle width --- src/RootTheme.cc | 12 +----------- src/RootTheme.hh | 6 +----- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/RootTheme.cc b/src/RootTheme.cc index 6e489e1..15723ac 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.5 2003/09/12 21:34:22 fluxgen Exp $ +// $Id: RootTheme.cc,v 1.6 2003/09/12 23:33:13 fluxgen Exp $ #include "RootTheme.hh" @@ -29,13 +29,9 @@ RootTheme::RootTheme(int screen_num, std::string &screen_root_command): FbTk::Theme(screen_num), m_root_command(*this, "rootCommand", "RootCommand"), - m_bevel_width(*this, "bevelWidth", "BevelWidth"), - m_handle_width(*this, "handleWidth", "HandleWidth"), m_screen_root_command(screen_root_command), m_opgc(RootWindow(FbTk::App::instance()->display(), screen_num)) { - *m_bevel_width = 0; - *m_handle_width = 0; Display *disp = FbTk::App::instance()->display(); m_opgc.setForeground(WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num)); m_opgc.setFunction(GXxor); @@ -47,12 +43,6 @@ RootTheme::~RootTheme() { } void RootTheme::reconfigTheme() { - 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 diff --git a/src/RootTheme.hh b/src/RootTheme.hh index a23e439..3f12358 100644 --- a/src/RootTheme.hh +++ b/src/RootTheme.hh @@ -19,13 +19,12 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: RootTheme.hh,v 1.4 2003/09/12 21:34:22 fluxgen Exp $ +// $Id: RootTheme.hh,v 1.5 2003/09/12 23:33:13 fluxgen Exp $ #ifndef ROOTTHEME_HH #define ROOTTHEME_HH #include "FbTk/Theme.hh" -#include "FbTk/Color.hh" #include "FbTk/GContext.hh" #include @@ -44,13 +43,10 @@ public: void reconfigTheme(); - int bevelWidth() const { return *m_bevel_width; } - int handleWidth() const { return *m_handle_width; } GC opGC() const { return m_opgc.gc(); } private: FbTk::ThemeItem m_root_command; - FbTk::ThemeItem m_bevel_width, m_handle_width; std::string &m_screen_root_command; ///< string to execute and override theme rootCommand FbTk::GContext m_opgc; }; -- cgit v0.11.2