* fixed warnings in icon-o-matic (one of which was actually a style issue ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -59,11 +59,11 @@ PropertyItemView::Draw(BRect updateRect)
|
|||||||
labelColor = tint_color(labelColor, B_DARKEN_MAX_TINT);
|
labelColor = tint_color(labelColor, B_DARKEN_MAX_TINT);
|
||||||
else
|
else
|
||||||
labelColor = tint_color(labelColor, B_DISABLED_LABEL_TINT);
|
labelColor = tint_color(labelColor, B_DISABLED_LABEL_TINT);
|
||||||
|
|
||||||
SetHighColor(labelColor);
|
SetHighColor(labelColor);
|
||||||
BFont font;
|
BFont font;
|
||||||
GetFont(&font);
|
GetFont(&font);
|
||||||
|
|
||||||
BString truncated(name_for_id(property->Identifier()));
|
BString truncated(name_for_id(property->Identifier()));
|
||||||
font.TruncateString(&truncated, B_TRUNCATE_MIDDLE, fLabelWidth - 10.0);
|
font.TruncateString(&truncated, B_TRUNCATE_MIDDLE, fLabelWidth - 10.0);
|
||||||
|
|
||||||
@@ -114,11 +114,12 @@ PropertyItemView::MouseDown(BPoint where)
|
|||||||
|
|
||||||
if (BMessage* message = Window()->CurrentMessage()) {
|
if (BMessage* message = Window()->CurrentMessage()) {
|
||||||
int32 clicks;
|
int32 clicks;
|
||||||
if (message->FindInt32("clicks", &clicks) >= B_OK)
|
if (message->FindInt32("clicks", &clicks) >= B_OK) {
|
||||||
if (clicks >= 2)
|
if (clicks >= 2)
|
||||||
fParent->DoubleClicked(this);
|
fParent->DoubleClicked(this);
|
||||||
else
|
else
|
||||||
fParent->Clicked(this);
|
fParent->Clicked(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -451,8 +451,7 @@ _WriteTransformer(LittleEndianBuffer& buffer, Transformer* t)
|
|||||||
|| !buffer.Write(miterLimit))
|
|| !buffer.Write(miterLimit))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} else if (PerspectiveTransformer* perspective
|
} else if (dynamic_cast<PerspectiveTransformer*>(t)) {
|
||||||
= dynamic_cast<PerspectiveTransformer*>(t)) {
|
|
||||||
// perspective
|
// perspective
|
||||||
if (!buffer.Write((uint8)TRANSFORMER_TYPE_PERSPECTIVE))
|
if (!buffer.Write((uint8)TRANSFORMER_TYPE_PERSPECTIVE))
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user