Implement missing B_CREATE_PROPERTY.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28589 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -613,6 +613,17 @@ BShelf::MessageReceived(BMessage *msg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return BHandler::MessageReceived(msg);
|
return BHandler::MessageReceived(msg);
|
||||||
|
|
||||||
|
case B_CREATE_PROPERTY:
|
||||||
|
{
|
||||||
|
BMessage replicantMsg;
|
||||||
|
BPoint pos;
|
||||||
|
if (msg->FindMessage("data", &replicantMsg) == B_OK
|
||||||
|
&& msg->FindPoint("location", &pos) == B_OK) {
|
||||||
|
err = AddReplicant(&replicantMsg, pos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err < B_OK) {
|
if (err < B_OK) {
|
||||||
@@ -678,10 +689,8 @@ BShelf::ResolveSpecifier(BMessage *msg, int32 index, BMessage *specifier,
|
|||||||
|
|
||||||
switch (shelfPropInfo.FindMatch(msg, 0, specifier, form, property)) {
|
switch (shelfPropInfo.FindMatch(msg, 0, specifier, form, property)) {
|
||||||
case 0:
|
case 0:
|
||||||
if (msg->what == B_COUNT_PROPERTIES) {
|
target = this;
|
||||||
target = this;
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 1:
|
case 1:
|
||||||
if (msg->PopSpecifier() != B_OK) {
|
if (msg->PopSpecifier() != B_OK) {
|
||||||
target = this;
|
target = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user