mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 03:34:06 +00:00
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:
parent
375b63e858
commit
fad9618f18
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -209,6 +209,7 @@ protected:
|
||||
|
||||
HT_Resource getAddFolder ();
|
||||
HT_Resource getMenuFolder ();
|
||||
XP_Bool getOnlyHeaders ();
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user