зеркало из https://github.com/mozilla/gecko-dev.git
Better "autoOpen" support.
This commit is contained in:
Родитель
d762a26035
Коммит
d71db58bde
|
@ -2206,11 +2206,12 @@ HT_NewCursor (HT_Resource node)
|
|||
{
|
||||
/* determine if container should be auto opened */
|
||||
|
||||
if (node->view->inited == PR_TRUE) return(NULL);
|
||||
if (node->view->pane->special == PR_TRUE) return(NULL);
|
||||
if (nlocalStoreHasAssertion(gLocalStore, node->node,
|
||||
gNavCenter->RDF_AutoOpen, "yes",
|
||||
RDF_STRING_TYPE, 1))
|
||||
|
||||
if (node->flags & HT_INITED_FLAG) return(NULL);
|
||||
node->flags |= HT_INITED_FLAG;
|
||||
if (RDF_HasAssertion(gNCDB, node->node, gNavCenter->RDF_AutoOpen,
|
||||
"yes", RDF_STRING_TYPE, 1))
|
||||
{
|
||||
node->flags |= HT_OPEN_FLAG;
|
||||
}
|
||||
|
|
|
@ -143,6 +143,7 @@ typedef struct _HT_ValueStruct {
|
|||
#define HT_VOLATILE_URL_FLAG 0x0010
|
||||
#define HT_FREEICON_URL_FLAG 0x0020
|
||||
#define HT_PASSWORDOK_FLAG 0x0040
|
||||
#define HT_INITED_FLAG 0x0080
|
||||
|
||||
typedef struct _HT_ResourceStruct {
|
||||
struct _HT_ResourceStruct *nextItem;
|
||||
|
|
Загрузка…
Ссылка в новой задаче