removed bevel width and handle width

This commit is contained in:
fluxgen 2003-09-12 23:33:13 +00:00
parent 5aae53172b
commit 7e320b7d31
2 changed files with 2 additions and 16 deletions

View file

@ -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

View file

@ -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 <X11/Xlib.h>
@ -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<std::string> m_root_command;
FbTk::ThemeItem<int> m_bevel_width, m_handle_width;
std::string &m_screen_root_command; ///< string to execute and override theme rootCommand
FbTk::GContext m_opgc;
};