Fix for bug 293266. Make sure "Joe User's Bookmarks" item appears as first

item in the "File Bookmarks" menu.
This commit is contained in:
ramiro%netscape.com 1998-09-16 14:19:11 +00:00
parent 375b63e858
commit fad9618f18
3 changed files with 15 additions and 0 deletions

View File

@ -188,6 +188,14 @@ XFE_BookmarkMenu::updateRoot()
// Create the entries if any
if (root)
{
// Make sure the "Joe's Bookmarks" cascade gets created for the
// first item in the "File Bookmarks" hierarchy.
if (getOnlyHeaders())
{
XtManageChild(createCascadeButton(_subMenu,getMenuFolder(),True));
XtManageChild(createSeparator(_subMenu));
}
createItemTree(_subMenu,root);
}
}

View File

@ -1312,6 +1312,12 @@ XFE_RDFMenuToolbarBase::getMenuFolder()
return getRootFolder();
}
//////////////////////////////////////////////////////////////////////////
XP_Bool
XFE_RDFMenuToolbarBase::getOnlyHeaders()
{
return _onlyHeaders;
}
//////////////////////////////////////////////////////////////////////////
/* static */ HT_Resource
XFE_RDFMenuToolbarBase::ht_FindFolderByName(HT_Resource root,
char * folder_name)

View File

@ -209,6 +209,7 @@ protected:
HT_Resource getAddFolder ();
HT_Resource getMenuFolder ();
XP_Bool getOnlyHeaders ();
private: