aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-16 12:23:17 (GMT)
committerfluxgen <fluxgen>2003-08-16 12:23:17 (GMT)
commit0d18eba6935d9f589103b725e82d2a45ded59f18 (patch)
tree7ccfbd4fb3f1440240fbccfb8d04865d31f8849e /src/FbTk
parente39e47b5cfe6b0e4fbdb850757c81f363ef2f38c (diff)
downloadfluxbox_paul-0d18eba6935d9f589103b725e82d2a45ded59f18.zip
fluxbox_paul-0d18eba6935d9f589103b725e82d2a45ded59f18.tar.bz2
default valueS
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/MenuTheme.cc14
1 files 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 @@
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: MenuTheme.cc,v 1.8 2003/07/19 03:59:56 rathnor Exp $ 22// $Id: MenuTheme.cc,v 1.9 2003/08/16 12:23:17 fluxgen Exp $
23 23
24#include "MenuTheme.hh" 24#include "MenuTheme.hh"
25 25
@@ -54,7 +54,10 @@ MenuTheme::MenuTheme(int screen_num):
54 m_display(FbTk::App::instance()->display()), 54 m_display(FbTk::App::instance()->display()),
55 m_alpha(255) 55 m_alpha(255)
56{ 56{
57 57 // set default values
58 *m_border_width = 0;
59 *m_bevel_width = 0;
60
58 Window rootwindow = RootWindow(m_display, screen_num); 61 Window rootwindow = RootWindow(m_display, screen_num);
59 62
60 XGCValues gcv; 63 XGCValues gcv;
@@ -86,7 +89,12 @@ MenuTheme::~MenuTheme() {
86} 89}
87 90
88void MenuTheme::reconfigTheme() { 91void MenuTheme::reconfigTheme() {
89 92 // clamp to "normal" size
93 if (*m_bevel_width > 20)
94 *m_bevel_width = 20;
95 if (*m_border_width > 20)
96 *m_border_width = 20;
97
90 XGCValues gcv; 98 XGCValues gcv;
91 unsigned long gc_value_mask = GCForeground; 99 unsigned long gc_value_mask = GCForeground;
92 100