mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Navigation buttons back in business.
This commit is contained in:
parent
ae44e19875
commit
2a83584571
@ -38,8 +38,10 @@
|
||||
|
||||
#include "ToolbarButton.h"
|
||||
#include "ToolbarCascade.h"
|
||||
#include "ToolbarNavigation.h"
|
||||
#include "ToolbarSeparator.h"
|
||||
#include "ToolbarUrlBar.h"
|
||||
#include "ToolbarWindowList.h"
|
||||
|
||||
#if DEBUG_radha
|
||||
#define D(x) x
|
||||
@ -353,10 +355,48 @@ XFE_RDFToolbar::addItem(HT_Resource node)
|
||||
// Normal items
|
||||
else
|
||||
{
|
||||
item = new XFE_ToolbarButton(_frame,
|
||||
_toolbar,
|
||||
node,
|
||||
"toolbarButton");
|
||||
if (XFE_RDFUtils::ht_IsFECommand(node))
|
||||
{
|
||||
if (XFE_RDFUtils::ht_GetFECommand(node) == xfeCmdBack)
|
||||
{
|
||||
item = new XFE_ToolbarNavigation(_frame,
|
||||
_toolbar,
|
||||
node,
|
||||
"toolbarNavigation",
|
||||
False);
|
||||
}
|
||||
else if (XFE_RDFUtils::ht_GetFECommand(node) == xfeCmdForward)
|
||||
{
|
||||
item = new XFE_ToolbarNavigation(_frame,
|
||||
_toolbar,
|
||||
node,
|
||||
"toolbarNavigation",
|
||||
True);
|
||||
}
|
||||
else if (XP_STRNCMP(HT_GetNodeURL(node),
|
||||
"command:windowList",
|
||||
XP_STRLEN("command:windowList")) == 0)
|
||||
{
|
||||
item = new XFE_ToolbarWindowList(_frame,
|
||||
_toolbar,
|
||||
node,
|
||||
"toolbarWindowList");
|
||||
}
|
||||
else
|
||||
{
|
||||
item = new XFE_ToolbarButton(_frame,
|
||||
_toolbar,
|
||||
node,
|
||||
"toolbarButton");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
item = new XFE_ToolbarButton(_frame,
|
||||
_toolbar,
|
||||
node,
|
||||
"toolbarButton");
|
||||
}
|
||||
}
|
||||
|
||||
if (item)
|
||||
|
Loading…
Reference in New Issue
Block a user