From fcb6cbaa64b1ffa34c3b770d08d74ba52a8bc161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 8 Dec 2005 22:10:24 +0000 Subject: [PATCH] when attached to a BWindow, make sure that the window sets up pulse messaging, if the view has B_PULSE_NEEDED, fixes Tracker showing 0 items in CountView git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15428 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index 1bd793d614..caf18275eb 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -4090,6 +4090,17 @@ BView::_Attach() AttachedToWindow(); fAttached = true; + // after giving the view a chance to do this itself, + // check for the B_PULSE_NEEDED flag and make sure the + // window set's up the pulse messaging + if (fOwner) { + if (fFlags & B_PULSE_NEEDED) { + check_lock_no_pick(); + if (!fOwner->fPulseEnabled) + fOwner->SetPulseRate(500000); + } + } + for (BView* child = fFirstChild; child != NULL; child = child->fNextSibling) { // we need to check for fAttached as new views could have been // added in AttachedToWindow() - and those are already attached