Implemented CheckNodeIconHintPrivate() - this missing call was responsible for the

wrong icons Tracker showed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16883 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-03-26 20:11:54 +00:00
parent 7d2fafcac5
commit 5351ff06d0
+19 -11
View File
@@ -1,12 +1,13 @@
//---------------------------------------------------------------------- /*
// This software is part of the Haiku distribution and is covered * Copyright 2002-2006, Haiku Inc.
// by the MIT license. * Distributed under the terms of the MIT License.
//--------------------------------------------------------------------- *
/*! * Authors:
\file NodeInfo.cpp * Ingo Weinhold, [email protected]
BNodeInfo implementation. * Axel Dörfler, [email protected]
*/ */
#include <NodeInfo.h> #include <NodeInfo.h>
#include <new> #include <new>
@@ -808,12 +809,19 @@ BNodeInfo::BNodeInfo(const BNodeInfo &)
namespace BPrivate { namespace BPrivate {
/*!
Private function used by Tracker. Should be moved into the Tracker sources.
*/
extern bool extern bool
CheckNodeIconHintPrivate(const BNode *node, bool whatever) CheckNodeIconHintPrivate(const BNode *node, bool checkMiniIconOnly)
{ {
// I've no idea what this is supposed to do exactly, but attr_info info;
// it seems to tell Tracker if there is an icon for the if (node->GetAttrInfo(kNIMiniIconAttribute, &info) != B_OK && checkMiniIconOnly)
// node. See kits/tracker/Model.cpp for details return false;
if (node->GetAttrInfo(kNILargeIconAttribute, &info) != B_OK)
return false;
return true; return true;
} }