From fd27581a348fac5c65a16d52b4629b2bcef485bd Mon Sep 17 00:00:00 2001 From: "hewitt%netscape.com" Date: Sun, 21 Oct 2001 03:59:20 +0000 Subject: [PATCH] 102241 - [XUL 1.0] use selectedIndex on deck and tabpanels, r=blake, sr=hyatt git-svn-id: svn://10.0.0.236/trunk@105895 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/shared/public/nsXULAtomList.h | 1 + mozilla/editor/ui/composer/content/editor.js | 4 +- mozilla/editor/ui/composer/content/editor.xul | 2 +- .../ui/dialogs/content/EdAEHTMLAttributes.js | 6 +- .../ui/dialogs/content/EdAdvancedEdit.xul | 2 +- .../editor/ui/dialogs/content/EdTableProps.js | 4 +- .../content/viewers/boxModel/colorPicker.xul | 6 +- .../content/viewers/dom/FindDialog.js | 2 +- .../p3p/resources/content/pref-P3P.xul | 4 +- .../wallet/cookieviewer/CookieViewer.js | 4 - .../wallet/signonviewer/SignonViewer.js | 12 +- .../wallet/signonviewer/SignonViewer.xul | 2 +- mozilla/layout/xul/base/src/nsDeckFrame.cpp | 4 +- .../base/resources/content/folderProps.js | 2 +- .../base/resources/content/mailWidgets.xml | 8 +- .../base/resources/content/subscribe.js | 6 +- .../base/resources/content/subscribe.xul | 2 +- .../search/resources/content/FilterEditor.js | 2 +- .../resources/content/askSendFormat.js | 8 +- .../import/resources/content/importDialog.js | 22 +- .../import/resources/content/importDialog.xul | 2 +- .../resources/content/pref-mousewheel.xul | 11 +- .../search/resources/search-panel.js | 2 +- .../ucth/resources/helperAppDldProgress.js | 6 +- .../resources/content/bindings/general.xml | 38 ++ .../resources/content/bindings/tabbrowser.xml | 6 +- .../resources/content/bindings/wizard.xml | 349 ++++++++---------- mozilla/xpfe/global/resources/content/xul.css | 10 +- 28 files changed, 271 insertions(+), 256 deletions(-) diff --git a/mozilla/content/shared/public/nsXULAtomList.h b/mozilla/content/shared/public/nsXULAtomList.h index 5bbc881536d..fda597c811d 100644 --- a/mozilla/content/shared/public/nsXULAtomList.h +++ b/mozilla/content/shared/public/nsXULAtomList.h @@ -296,3 +296,4 @@ XUL_ATOM(properties, "properties") XUL_ATOM(sort, "sort") XUL_ATOM(sortDirection, "sortDirection") XUL_ATOM(sortActive, "sortActive") +XUL_ATOM(selectedIndex, "selectedIndex") diff --git a/mozilla/editor/ui/composer/content/editor.js b/mozilla/editor/ui/composer/content/editor.js index e4b74b72fb3..d35cbe44f2a 100644 --- a/mozilla/editor/ui/composer/content/editor.js +++ b/mozilla/editor/ui/composer/content/editor.js @@ -1337,7 +1337,7 @@ function SetDisplayMode(mode) if (mode == DisplayModeSource) { // Switch to the sourceWindow (second in the deck) - gContentWindowDeck.setAttribute("index","1"); + gContentWindowDeck.setAttribute("selectedIndex","1"); //Hide the formatting toolbar if not already hidden gFormatToolbarHidden = gFormatToolbar.getAttribute("hidden"); @@ -1351,7 +1351,7 @@ function SetDisplayMode(mode) else { // Switch to the normal editor (first in the deck) - gContentWindowDeck.setAttribute("index","0"); + gContentWindowDeck.setAttribute("selectedIndex","0"); // Restore menus and toolbars if (gFormatToolbarHidden != "true") diff --git a/mozilla/editor/ui/composer/content/editor.xul b/mozilla/editor/ui/composer/content/editor.xul index f40655551ed..8b458fcf4d2 100644 --- a/mozilla/editor/ui/composer/content/editor.xul +++ b/mozilla/editor/ui/composer/content/editor.xul @@ -237,7 +237,7 @@