* added TODO in DragMessage about using an area for the message

* removed TODO in DragMessage about reference counting, since
  it already happens
* use _FlushIfNotInTransaction when moving/resizing a view
  programmatically, so that it usually happens instantly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17186 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2006-04-21 10:09:53 +00:00
parent 2fdf723b60
commit 0c4d8bc572

View File

@ -1314,6 +1314,8 @@ BView::DragMessage(BMessage *message, BBitmap *image,
BMessage::Private privateMessage(message);
privateMessage.SetReply(BMessenger(replyTo, replyTo->Looper()));
// TODO: create area and flatten message into that area!
// send area info over port, not the actual message!
int32 bufferSize = privateMessage.NativeFlattenedSize();
char* buffer = new (nothrow) char[bufferSize];
if (buffer) {
@ -1337,9 +1339,6 @@ BView::DragMessage(BMessage *message, BBitmap *image,
fprintf(stderr, "BView::DragMessage() - no memory to flatten drag message\n");
}
// TODO: in app_server the bitmap refCount must be incremented
// WRITE this into specs!!!!
delete image;
}
@ -3443,6 +3442,8 @@ BView::MoveTo(float x, float y)
fOwner->fLink->Attach<float>(y);
fState->valid_flags |= B_VIEW_FRAME_BIT;
_FlushIfNotInTransaction();
}
_MoveTo(x, y);
@ -3476,6 +3477,8 @@ BView::ResizeBy(float deltaWidth, float deltaHeight)
fOwner->fLink->Attach<float>(fBounds.bottom + deltaHeight);
fState->valid_flags |= B_VIEW_FRAME_BIT;
_FlushIfNotInTransaction();
}
_ResizeBy(deltaWidth, deltaHeight);