Use xul:titledbutton instead of xul:treeicon for now.

This commit is contained in:
waterson%netscape.com 1999-03-11 23:59:26 +00:00
parent e991120721
commit 1289e9ff7b

View File

@ -195,6 +195,8 @@ public:
static nsIAtom* kTreeIconAtom;
static nsIAtom* kTreeIndentationAtom;
static nsIAtom* kTreeItemAtom;
static nsIAtom* kTitledButtonAtom;
};
////////////////////////////////////////////////////////////////////////
@ -211,6 +213,8 @@ nsIAtom* RDFTreeBuilderImpl::kTreeIconAtom;
nsIAtom* RDFTreeBuilderImpl::kTreeIndentationAtom;
nsIAtom* RDFTreeBuilderImpl::kTreeItemAtom;
nsIAtom* RDFTreeBuilderImpl::kTitledButtonAtom;
////////////////////////////////////////////////////////////////////////
nsresult
@ -244,6 +248,8 @@ RDFTreeBuilderImpl::RDFTreeBuilderImpl(void)
kTreeIconAtom = NS_NewAtom("treeicon");
kTreeIndentationAtom = NS_NewAtom("treeindentation");
kTreeItemAtom = NS_NewAtom("treeitem");
kTitledButtonAtom = NS_NewAtom("titledbutton");
}
++gRefCnt;
@ -263,6 +269,8 @@ RDFTreeBuilderImpl::~RDFTreeBuilderImpl(void)
NS_RELEASE(kTreeIconAtom);
NS_RELEASE(kTreeIndentationAtom);
NS_RELEASE(kTreeItemAtom);
NS_RELEASE(kTitledButtonAtom);
}
}
@ -630,7 +638,7 @@ RDFTreeBuilderImpl::CreateTreeItemCells(nsIContent* aTreeItemElement)
nsCOMPtr<nsIContent> iconElement;
if (NS_FAILED(rv = NS_NewRDFElement(kNameSpaceID_XUL,
kTreeIconAtom,
kTitledButtonAtom /* kTreeIconAtom */,
getter_AddRefs(iconElement)))) {
NS_ERROR("unable to create icon node");
return rv;
@ -641,7 +649,7 @@ RDFTreeBuilderImpl::CreateTreeItemCells(nsIContent* aTreeItemElement)
return rv;
}
textParent = iconElement;
//textParent = iconElement;
}