From e9e26839cc2fb2c3d1f6dc96700efba367afd3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 24 Feb 2004 09:37:15 +0000 Subject: [PATCH] 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 --- src/apps/diskprobe/ProbeView.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index a7e5cf4f1e..350aa57986 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -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;