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:
15
WINGs/wbox.c
15
WINGs/wbox.c
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user