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:
Axel Dörfler
2004-02-24 09:37:15 +00:00
parent 902673ec27
commit e9e26839cc
+17
View File
@@ -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;