ProbeView now monitors attribute changes of its file (and update its attributes menu).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6716 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1161,6 +1161,23 @@ ProbeView::MessageReceived(BMessage *message)
|
||||
break;
|
||||
}
|
||||
|
||||
case B_NODE_MONITOR:
|
||||
{
|
||||
switch (message->FindInt32("opcode")) {
|
||||
case B_ATTR_CHANGED:
|
||||
{
|
||||
BMenuBar *bar = Window()->KeyMenuBar();
|
||||
if (bar != NULL) {
|
||||
BMenuItem *item = bar->FindItem("Attributes");
|
||||
if (item != NULL && item->Submenu() != NULL)
|
||||
UpdateAttributesMenu(item->Submenu());
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case B_CLIPBOARD_CHANGED:
|
||||
CheckClipboard();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user