1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-03 14:55:46 +01:00

A few miscelaneous fixes

This commit is contained in:
dan
2001-04-25 02:03:08 +00:00
parent 2eb1f26644
commit 86154ba01d
19 changed files with 33 additions and 29 deletions

View File

@@ -152,9 +152,10 @@ rearrange(WMBox *box)
void
WMSetBoxBorderWidth(WMBox *box, unsigned width)
{
box->borderWidth = width;
rearrange(box);
if (box->borderWidth != width) {
box->borderWidth = width;
rearrange(box);
}
}
@@ -227,8 +228,12 @@ WMRemoveBoxSubview(WMBox *bPtr, WMView *view)
void
WMSetBoxHorizontal(WMBox *box, Bool flag)
{
box->horizontal = flag;
rearrange(box);
/* make sure flag is either 0 or 1 no matter what true value was passed */
flag = ((flag==0) ? 0 : 1);
if (box->horizontal != flag) {
box->horizontal = flag;
rearrange(box);
}
}

View File

@@ -650,7 +650,7 @@ paintButton(Button *bPtr)
}
}
W_PaintTextAndImage(bPtr->view, False, WMColorGC(textColor),
W_PaintTextAndImage(bPtr->view, True, WMColorGC(textColor),
(bPtr->font!=NULL ? bPtr->font : scrPtr->normalFont),
relief, caption, bPtr->flags.alignment, image,
bPtr->flags.imagePosition, gc, offset);