aboutsummaryrefslogtreecommitdiff
path: root/src/RootTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/RootTheme.cc')
-rw-r--r--src/RootTheme.cc12
1 files changed, 1 insertions, 11 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 @@
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: RootTheme.cc,v 1.5 2003/09/12 21:34:22 fluxgen Exp $ 22// $Id: RootTheme.cc,v 1.6 2003/09/12 23:33:13 fluxgen Exp $
23 23
24#include "RootTheme.hh" 24#include "RootTheme.hh"
25 25
@@ -29,13 +29,9 @@
29RootTheme::RootTheme(int screen_num, std::string &screen_root_command): 29RootTheme::RootTheme(int screen_num, std::string &screen_root_command):
30 FbTk::Theme(screen_num), 30 FbTk::Theme(screen_num),
31 m_root_command(*this, "rootCommand", "RootCommand"), 31 m_root_command(*this, "rootCommand", "RootCommand"),
32 m_bevel_width(*this, "bevelWidth", "BevelWidth"),
33 m_handle_width(*this, "handleWidth", "HandleWidth"),
34 m_screen_root_command(screen_root_command), 32 m_screen_root_command(screen_root_command),
35 m_opgc(RootWindow(FbTk::App::instance()->display(), screen_num)) { 33 m_opgc(RootWindow(FbTk::App::instance()->display(), screen_num)) {
36 34
37 *m_bevel_width = 0;
38 *m_handle_width = 0;
39 Display *disp = FbTk::App::instance()->display(); 35 Display *disp = FbTk::App::instance()->display();
40 m_opgc.setForeground(WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num)); 36 m_opgc.setForeground(WhitePixel(disp, screen_num)^BlackPixel(disp, screen_num));
41 m_opgc.setFunction(GXxor); 37 m_opgc.setFunction(GXxor);
@@ -47,12 +43,6 @@ RootTheme::~RootTheme() {
47} 43}
48 44
49void RootTheme::reconfigTheme() { 45void RootTheme::reconfigTheme() {
50 if (*m_bevel_width > 20)
51 *m_bevel_width = 20;
52
53 if (*m_handle_width > 20)
54 *m_handle_width = 20;
55
56 // override resource root command? 46 // override resource root command?
57 if (m_screen_root_command == "") { 47 if (m_screen_root_command == "") {
58 // do root command 48 // do root command