Changed printf and PrintToStream to PRINT and PRINT_OBJECT

Enlarged image field to fit long filenames


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2004-07-21 14:59:57 +00:00
parent 539a90858a
commit 7c05648267
2 changed files with 8 additions and 6 deletions

View File

@ -189,7 +189,9 @@ BGView::BGView(BRect frame, const char *name, int32 resize, int32 flags)
rightbox->AddChild(placementMenuField);
cvrect.OffsetBy(0, -25);
BMenuField *imageMenuField = new BMenuField(cvrect, "imageMenuField",
BRect imageRect = cvrect;
imageRect.right += 40;
BMenuField *imageMenuField = new BMenuField(imageRect, "imageMenuField",
"Image:", fImageMenu);
imageMenuField->SetDivider(70.0);
imageMenuField->SetAlignment(B_ALIGN_RIGHT);
@ -337,7 +339,7 @@ BGView::MessageReceived(BMessage *msg)
}
case B_CANCEL:
{
printf("cancel received\n");
PRINT(("cancel received\n"));
void* pointer;
msg->FindPointer("source", &pointer);
if(pointer == fPanel) {
@ -752,7 +754,7 @@ BGView::LoadSettings(void)
BFile file(path.Path(),B_READ_ONLY);
if((file.InitCheck()==B_OK)&&(fSettings.Unflatten(&file)==B_OK))
{
fSettings.PrintToStream();
PRINT_OBJECT(fSettings);
BPoint point;
if(fSettings.FindPoint("pos", &point)==B_OK)
@ -779,7 +781,7 @@ BGView::LoadSettings(void)
}
fWorkspaceMenu->SetTargetForItems(this);
printf("Settings Loaded\n");
PRINT(("Settings Loaded\n"));
} else
{
printf("Error unflattening settings file %s\n",path.Path());

View File

@ -87,7 +87,7 @@ BackgroundImage::GetBackgroundImage(const BNode *node, bool isDesktop,
if (error != B_OK)
return NULL;
container.PrintToStream();
PRINT_OBJECT(container);
uint32 imageSetPeriod = 0;
uint32 globalCacheMode = 0;
@ -420,7 +420,7 @@ BackgroundImage::SetBackgroundImage(BNode *node)
}
}
container.PrintToStream();
PRINT_OBJECT(container);
char buffer[container.FlattenedSize()];
if((err = container.Flatten(buffer, container.FlattenedSize())) != B_OK)