Make sure that text clippings dragged from DeskCalc will be named "DeskCalc

clipping" instead of the default "Untitled clipping". Fixes last remaining
issue of #2749.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28923 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-01-17 14:55:15 +00:00
parent bc7dbfd71d
commit 4e034d2ab3
2 changed files with 14 additions and 0 deletions

View File

@ -103,6 +103,15 @@ ExpressionTextView::MouseDown(BPoint where)
}
void
ExpressionTextView::GetDragParameters(BMessage* dragMessage,
BBitmap** bitmap, BPoint* point, BHandler** handler)
{
InputTextView::GetDragParameters(dragMessage, bitmap, point, handler);
dragMessage->AddString("be:clip_name", "DeskCalc clipping");
}
// #pragma mark -

View File

@ -28,6 +28,11 @@ class ExpressionTextView : public InputTextView {
virtual void MouseDown(BPoint where);
// TextView
virtual void GetDragParameters(BMessage* dragMessage,
BBitmap** bitmap, BPoint* point,
BHandler** handler);
// InputTextView
virtual void RevertChanges();
virtual void ApplyChanges();