Bug 449371 Firefox/Thunderbird crashes at exit [@ gdk_display_x11_finalize], p=Brian...
[wine-gecko.git] / browser / components / shell / content / setDesktopBackground.xul
blobcc96733bc19de4067d1680113c7650b4a37f7620
1 <?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
3 # ***** BEGIN LICENSE BLOCK *****
4 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 # The contents of this file are subject to the Mozilla Public License Version
7 # 1.1 (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an "AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 # for the specific language governing rights and limitations under the
14 # License.
16 # The Original Code is Mozilla Firebird about dialog.
18 # The Initial Developer of the Original Code is
19 # Blake Ross (blake@blakeross.com).
20 # Portions created by the Initial Developer are Copyright (C) 2002
21 # the Initial Developer. All Rights Reserved.
23 # Contributor(s):
24 # Blake Ross <blake@blakeross.com>
25 # Ben Goodger <ben@mozilla.org>
26 # Dão Gottwald <dao@design-noir.de>
28 # Alternatively, the contents of this file may be used under the terms of
29 # either the GNU General Public License Version 2 or later (the "GPL"), or
30 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
31 # in which case the provisions of the GPL or the LGPL are applicable instead
32 # of those above. If you wish to allow use of your version of this file only
33 # under the terms of either the GPL or the LGPL, and not to allow others to
34 # use your version of this file under the terms of the MPL, indicate your
35 # decision by deleting the provisions above and replace them with the notice
36 # and other provisions required by the LGPL or the GPL. If you do not delete
37 # the provisions above, a recipient may use your version of this file under
38 # the terms of any one of the MPL, the GPL or the LGPL.
40 # ***** END LICENSE BLOCK ***** -->
42 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
43 <?xml-stylesheet href="chrome://browser/skin/setDesktopBackground.css" type="text/css"?>
45 <!DOCTYPE dialog SYSTEM "chrome://browser/locale/setDesktopBackground.dtd">
47 #ifdef XP_MACOSX
48 <?xul-overlay href="chrome://browser/content/macBrowserOverlay.xul"?>
49 #endif
51 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
52 xmlns:html="http://www.w3.org/1999/xhtml"
53 windowtype="Shell:SetDesktopBackground"
54 #ifndef XP_MACOSX
55 buttons="accept,cancel"
56 #else
57 buttons="accept"
58 #endif
59 buttonlabelaccept="&setDesktopBackground.title;"
60 onload="gSetBackground.load();"
61 ondialogaccept="gSetBackground.setDesktopBackground();"
62 title="&setDesktopBackground.title;"
63 style="width: 30em;">
65 <stringbundle id="backgroundBundle"
66 src="chrome://browser/locale/shellservice.properties"/>
67 <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
68 <script type="application/javascript" src="chrome://browser/content/setDesktopBackground.js"/>
69 <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
71 #ifndef XP_MACOSX
72 <hbox align="center">
73 <label value="&position.label;"/>
74 <menulist id="menuPosition"
75 label="&position.label;"
76 oncommand="gSetBackground.updatePosition();">
77 <menupopup>
78 <menuitem label="&center.label;" value="CENTER"/>
79 <menuitem label="&tile.label;" value="TILE"/>
80 <menuitem label="&stretch.label;" value="STRETCH"/>
81 </menupopup>
82 </menulist>
83 <spacer flex="1"/>
84 <label value="&color.label;"/>
85 <colorpicker id="desktopColor"
86 type="button"
87 onchange="gSetBackground.updateColor(this.color);"/>
88 </hbox>
89 #endif
90 <groupbox align="center">
91 <caption label="&preview.label;"/>
92 <stack>
93 <!-- if width and height are not present, they default to 300x150 and stretch the stack -->
94 <html:canvas id="screen" width="1" height="1"/>
95 <image id="monitor"/>
96 </stack>
97 </groupbox>
99 #ifdef XP_MACOSX
100 <separator/>
102 <hbox align="right">
103 <button id="setDesktopBackground"
104 label="&setDesktopBackground.title;"
105 oncommand="gSetBackground.setDesktopBackground();"/>
106 <button id="showDesktopPreferences"
107 label="&openDesktopPrefs.label;"
108 oncommand="gSetBackground.showDesktopPrefs();"
109 hidden="true"/>
110 </hbox>
111 #endif
113 #ifdef XP_MACOSX
114 #include ../../../base/content/browserMountPoints.inc
115 #endif
117 </dialog>