~ubuntu-branches/ubuntu/maverick/all-in-one-sidebar/maverick-proposed

« back to all changes in this revision

Viewing changes to chrome/aios.jar!/content/aios_customize.xul

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-01-21 00:17:45 UTC
  • mfrom: (1.1.3 upstream) (0.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100121001745-4e8az0qgqeyf0gan
Tags: 0.7.11-1
* New upstream release.
* Remove trailing spaces.
* Add myself to Uploaders.
* Remove MOZ_XPI_BUILD_COMMAND, it's the default.
* Bump debian/compat to 7.
* Drop unused build dependency zip.
* Rename package from all-in-one-sidebar to xul-ext-all-in-one-sidebar.
* Update Vcs links to new location.
* Update Andrea Veri's email address.
* Remove unused enty from debian/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
 
 
3
<!-- skin -->
 
4
<?xml-stylesheet href="chrome://aios/skin/aios_buttons.css"?>
 
5
 
 
6
<overlay id="aiosOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
7
 
 
8
        <!-- scripts -->
 
9
    <script type="application/x-javascript" src="chrome://aios/content/_common.js" />
 
10
    <script>
 
11
                <![CDATA[
 
12
 
 
13
                        // Fx <= 3.5
 
14
                        if(aios_appDefTheme && aios_appOS == "Darwin") aios_addCSS("aios_theme_darwin.css", "CustomizeToolbarSheet");
 
15
                        // Fx >= 3.6
 
16
                        if(aios_appDefTheme && aios_appOS == "Darwin") aios_addCSS("aios_theme_darwin.css", "CustomizeToolbarWindow");
 
17
 
 
18
                        if(window.arguments) {
 
19
                                var tboxID = window.arguments[0].id;
 
20
                                if(tboxID.indexOf('aios') == 0) document.getElementById('CustomizeToolbarWindow').setAttribute('isAiOS', true);
 
21
                                if(tboxID == "aios-sbhtoolbox") document.getElementById('CustomizeToolbarWindow').setAttribute('isAiOSSBH', true);
 
22
 
 
23
                                /*var fx_repositionDialog = repositionDialog;
 
24
                                repositionDialog = function() {
 
25
                                        if(tboxID.indexOf('aios') == 0 || tboxID == "aios-sbhtoolbox") {
 
26
                                                var screenX = gToolbox.boxObject.screenX + gToolbox.boxObject.width + 20;
 
27
                                                var screenY = gToolbox.boxObject.screenY;
 
28
                                                window.moveTo(screenX, screenY);
 
29
                                        }
 
30
                                        else fx_repositionDialog();
 
31
                                };*/
 
32
 
 
33
                                var fx_repositionDialog = repositionDialog;
 
34
                                repositionDialog = function() {
 
35
                                        if(tboxID.indexOf('aios') == 0 || tboxID == "aios-sbhtoolbox") {
 
36
                                                
 
37
                                                // Sidebar links
 
38
                                                if(aios_gPrefBranch.getIntPref('gen.orient') == 1) {
 
39
                                                    var screenX = gToolbox.boxObject.screenX + gToolbox.boxObject.width + 20;
 
40
                                                    var screenY = gToolbox.boxObject.screenY;
 
41
                                                    window.moveTo(screenX, screenY);
 
42
                                                }
 
43
                                                // Sidebar rechts
 
44
                                                else {
 
45
                                                    var screenX = gToolbox.boxObject.screenX - document.getElementById('CustomizeToolbarWindow').width - 30;
 
46
                                                    var screenY = gToolbox.boxObject.screenY;
 
47
                                                    window.moveTo(screenX, screenY);
 
48
                                                }
 
49
                                        }
 
50
                                        else fx_repositionDialog();
 
51
                                };
 
52
                        }
 
53
                ]]>
 
54
    </script>
 
55
 
 
56
</overlay>
 
 
b'\\ No newline at end of file'