all repos — fluxbox @ 0d18eba6935d9f589103b725e82d2a45ded59f18

custom fork of the fluxbox windowmanager

default valueS
fluxgen fluxgen
commit

0d18eba6935d9f589103b725e82d2a45ded59f18

parent

e39e47b5cfe6b0e4fbdb850757c81f363ef2f38c

1 files changed, 11 insertions(+), 3 deletions(-)

jump to
M src/FbTk/MenuTheme.ccsrc/FbTk/MenuTheme.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: MenuTheme.cc,v 1.8 2003/07/19 03:59:56 rathnor Exp $ +// $Id: MenuTheme.cc,v 1.9 2003/08/16 12:23:17 fluxgen Exp $ #include "MenuTheme.hh"

@@ -54,7 +54,10 @@ m_border_color(*this, "borderColor", "BorderColor"),

m_display(FbTk::App::instance()->display()), m_alpha(255) { - + // set default values + *m_border_width = 0; + *m_bevel_width = 0; + Window rootwindow = RootWindow(m_display, screen_num); XGCValues gcv;

@@ -86,7 +89,12 @@ XFreeGC(m_display, hilite_gc);

} void MenuTheme::reconfigTheme() { - + // clamp to "normal" size + if (*m_bevel_width > 20) + *m_bevel_width = 20; + if (*m_border_width > 20) + *m_border_width = 20; + XGCValues gcv; unsigned long gc_value_mask = GCForeground;