Bug 873518 - Remove cut/copy/paste buttons from customization palette, r=jaws

--HG--
extra : rebase_source : 13c09247872eac1fd1ffe73e05321a981f21dafa
This commit is contained in:
Gijs Kruitbosch 2013-05-28 16:33:43 +02:00
Родитель 2a17cdd2d7
Коммит 980c35497f
6 изменённых файлов: 5 добавлений и 112 удалений

Просмотреть файл

@ -3363,15 +3363,14 @@ function updateEditUIVisibility()
// The UI is visible if the Edit menu is opening or open, if the context menu
// is open, or if the toolbar has been customized to include the Cut, Copy,
// or Paste toolbar buttons.
// XXXgijs: this needs to be updated with the unified cut/copy/paste toolbarbutton
// once that is customizable! See bug 870901.
gEditUIVisible = editMenuPopupState == "showing" ||
editMenuPopupState == "open" ||
contextMenuPopupState == "showing" ||
contextMenuPopupState == "open" ||
placesContextMenuPopupState == "showing" ||
placesContextMenuPopupState == "open" ||
document.getElementById("cut-button") ||
document.getElementById("copy-button") ||
document.getElementById("paste-button") ? true : false;
placesContextMenuPopupState == "open";
// If UI is visible, update the edit commands' enabled state to reflect
// whether or not they are actually enabled for the current focus/selection.

Просмотреть файл

@ -1031,21 +1031,6 @@
onclick="checkForMiddleClick(this, event);"/>
</toolbarbutton>
<toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&cutCmd.label;"
command="cmd_cut"
tooltiptext="&cutButton.tooltip;"/>
<toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&copyCmd.label;"
command="cmd_copy"
tooltiptext="&copyButton.tooltip;"/>
<toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&pasteCmd.label;"
command="cmd_paste"
tooltiptext="&pasteButton.tooltip;"/>
#ifdef MOZ_SERVICES_SYNC
<toolbarbutton id="sync-button"
class="toolbarbutton-1 chromeclass-toolbar-additional"

Просмотреть файл

@ -684,36 +684,14 @@ toolbar > .customization-target > toolbarpaletteitem > #history-panelmenu {
-moz-image-region: rect(0px 120px 24px 96px);
}
/* A lot of these buttons are going to be removed in later bugs, but until then
/* These buttons are going to be removed in later bugs, but until then
* we're overriding the menuPanel-icons sprites with these ones with
* !important.
*
* Here are the relevant removal bugs:
* #cut-button, #copy-button, #paste-button - Bug 870901
* #zoom-out-button, #zoom-in-button - Bug 870897
*/
#cut-button {
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar") !important;
}
#cut-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar&state=disabled") !important;
}
#copy-button {
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar") !important;
}
#copy-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar&state=disabled") !important;
}
#paste-button {
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar") !important;
}
#paste-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar&state=disabled") !important;
}
#zoom-out-button {
list-style-image: url("moz-icon://stock/gtk-zoom-out?size=toolbar") !important;
}
@ -851,27 +829,6 @@ toolbar[iconsize="small"] #new-window-button {
-moz-image-region: rect(0px 80px 16px 64px);
}
toolbar[iconsize="small"] #cut-button {
list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
}
toolbar[iconsize="small"] #cut-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
}
toolbar[iconsize="small"] #copy-button {
list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
}
toolbar[iconsize="small"] #copy-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
}
toolbar[iconsize="small"] #paste-button {
list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
}
toolbar[iconsize="small"] #paste-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
}
toolbar[iconsize="small"] #fullscreen-button {
list-style-image: url("moz-icon://stock/gtk-fullscreen?size=menu");
}

Просмотреть файл

@ -962,42 +962,6 @@ toolbar > .customization-target > toolbarpaletteitem > #history-panelmenu {
}
}
/* cut button */
#cut-button {
-moz-image-region: rect(0, 260px, 20px, 240px);
}
@media (min-resolution: 2dppx) {
#cut-button {
-moz-image-region: rect(0, 520px, 40px, 480px);
}
}
/* copy button */
#copy-button {
-moz-image-region: rect(0, 280px, 20px, 260px);
}
@media (min-resolution: 2dppx) {
#copy-button {
-moz-image-region: rect(0, 560px, 40px, 520px);
}
}
/* paste button */
#paste-button {
-moz-image-region: rect(0, 300px, 20px, 280px);
}
@media (min-resolution: 2dppx) {
#paste-button {
-moz-image-region: rect(0, 600px, 40px, 560px);
}
}
/* alltabs button */
#alltabs-button {

Просмотреть файл

@ -1,3 +1,3 @@
%filter substitution
%define primaryToolbarButtons #back-button, #forward-button, #reload-button, #stop-button, #home-button, #print-button, #downloads-button, #downloads-indicator, #history-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #cut-button, #copy-button, #paste-button, #fullscreen-button, #zoom-out-button, #zoom-in-button, #sync-button, #feed-button, #alltabs-button, #tabview-button, #webrtc-status-button, #social-share-button
%define primaryToolbarButtons #back-button, #forward-button, #reload-button, #stop-button, #home-button, #print-button, #downloads-button, #downloads-indicator, #history-button, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #zoom-out-button, #zoom-in-button, #sync-button, #feed-button, #alltabs-button, #tabview-button, #webrtc-status-button, #social-share-button

Просмотреть файл

@ -718,18 +718,6 @@ toolbar > .customization-target > toolbarpaletteitem > #history-panelmenu {
-moz-image-region: rect(0, 198px, 18px, 180px);
}
#cut-button {
-moz-image-region: rect(0, 216px, 18px, 198px);
}
#copy-button {
-moz-image-region: rect(0, 234px, 18px, 216px);
}
#paste-button {
-moz-image-region: rect(0, 252px, 18px, 234px);
}
#fullscreen-button {
-moz-image-region: rect(0, 270px, 18px, 252px);
}