From 7c056482672a511fd84bd34b46953f1d6032319b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 21 Jul 2004 14:59:57 +0000 Subject: [PATCH] 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 --- src/prefs/backgrounds/BGView.cpp | 10 ++++++---- src/prefs/backgrounds/BackgroundImage.cpp | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) 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)