gecko-dev/browser/components/preferences/general.xul

93 lines
4.1 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % generalDTD SYSTEM "chrome://browser/locale/preferences/general.dtd" >
%generalDTD;
]>
<overlay id="GeneralPaneOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="paneGeneral" onpaneload="gGeneralPane.init();"
helpTopic="prefs-general" helpURI="chrome://browser/locale/help/help.rdf">
<script type="application/x-javascript" src="chrome://browser/content/preferences/general.js"/>
<preferences>
<preference id="browser.startup.homepage"
name="browser.startup.homepage"
type="wstring" onchange="gGeneralPane.homepageChanged(event);"/>
<preference id="browser.shell.checkDefaultBrowser"
name="browser.shell.checkDefaultBrowser"
type="bool"/>
<preference id="pref.browser.homepage.disable_button.current_page"
name="pref.browser.homepage.disable_button.current_page"
type="bool"/>
<preference id="pref.browser.homepage.disable_button.bookmark_page"
name="pref.browser.homepage.disable_button.bookmark_page"
type="bool"/>
<preference id="pref.browser.homepage.disable_button.blank_page"
name="pref.browser.homepage.disable_button.blank_page"
type="bool"/>
<preference id="pref.general.disable_button.default_browser"
name="pref.general.disable_button.default_browser"
type="bool"/>
</preferences>
<stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
<stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
<groupbox>
<caption label="&header2.label;"/>
<hbox align="center" flex="1">
<label value="&location.label;" accesskey="&location.accesskey;" control="browserStartupHomepage"/>
<textbox id="browserStartupHomepage" class="padded" flex="1"
type="autocomplete" autocompletesearch="history"
preference="browser.startup.homepage"/>
</hbox>
<hbox align="center" pack="end">
<button label="&useCurrent.label;" accesskey="&useCurrent.accesskey;"
label2="&useCurrentMultiple.label;"
oncommand="gGeneralPane.setHomePageToCurrentPage();"
id="browserUseCurrent"
prefstring="pref.browser.homepage.disable_button.current_page"/>
<button label="&useBookmark.label;" accesskey="&useBookmark.accesskey;"
oncommand="gGeneralPane.setHomePageToBookmark();"
id="browserUseBookmark"
prefstring="pref.browser.homepage.disable_button.bookmark_page"/>
<button label="&useBlank.label;" accesskey="&useBlank.accesskey;"
oncommand="gGeneralPane.setHomePageToBlankPage();"
id="browserUseBlank"
prefstring="pref.browser.homepage.disable_button.blank_page"/>
</hbox>
</groupbox>
#ifdef HAVE_SHELL_SERVICE
<groupbox orient="horizontal">
<caption label="&defaultBrowserGroup.label;"/>
<hbox align="center" flex="1">
<checkbox id="checkForDefault" preference="browser.shell.checkDefaultBrowser"
label="&checkForDefault.label;" accesskey="&checkForDefault.accesskey;"
flex="1"/>
<button label="&checkNow.label;" accesskey="&checkNow.accesskey;"
oncommand="gGeneralPane.checkNow()"
preference="pref.general.disable_button.default_browser"/>
</hbox>
</groupbox>
#endif
<groupbox>
<caption label="&connectionsInfo.caption;"/>
<hbox align="center">
<description flex="1">&proxiesInfo.label;</description>
<button id="catProxiesButton" icon="network" label="&showConnections.label;"
accesskey="&showConnections.accesskey;"
oncommand="gGeneralPane.showConnections();"/>
</hbox>
</groupbox>
<separator/>
</prefpane>
</overlay>