diff --git a/src/prefs/backgrounds/BGView.cpp b/src/prefs/backgrounds/BGView.cpp index 120125addc..5304478861 100644 --- a/src/prefs/backgrounds/BGView.cpp +++ b/src/prefs/backgrounds/BGView.cpp @@ -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()); diff --git a/src/prefs/backgrounds/BackgroundImage.cpp b/src/prefs/backgrounds/BackgroundImage.cpp index 9ecdc93d4b..1b9c03c178 100644 --- a/src/prefs/backgrounds/BackgroundImage.cpp +++ b/src/prefs/backgrounds/BackgroundImage.cpp @@ -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)