Compare commits
5 Commits
3.24.3
...
gnome-3-24
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6bd0872530 | ||
![]() |
8dace05c26 | ||
![]() |
eb2699f2b1 | ||
![]() |
34bab377b1 | ||
![]() |
82c984dd33 |
@@ -414,7 +414,7 @@ const Overview = new Lang.Class({
|
|||||||
|
|
||||||
beginItemDrag: function(source) {
|
beginItemDrag: function(source) {
|
||||||
this.emit('item-drag-begin');
|
this.emit('item-drag-begin');
|
||||||
this._inDrag = true;
|
this._inItemDrag = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
cancelledItemDrag: function(source) {
|
cancelledItemDrag: function(source) {
|
||||||
@@ -422,13 +422,15 @@ const Overview = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
endItemDrag: function(source) {
|
endItemDrag: function(source) {
|
||||||
|
if (!this._inItemDrag)
|
||||||
|
return;
|
||||||
this.emit('item-drag-end');
|
this.emit('item-drag-end');
|
||||||
this._inDrag = false;
|
this._inItemDrag = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
beginWindowDrag: function(window) {
|
beginWindowDrag: function(window) {
|
||||||
this.emit('window-drag-begin', window);
|
this.emit('window-drag-begin', window);
|
||||||
this._inDrag = true;
|
this._inWindowDrag = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
cancelledWindowDrag: function(window) {
|
cancelledWindowDrag: function(window) {
|
||||||
@@ -436,8 +438,10 @@ const Overview = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
endWindowDrag: function(window) {
|
endWindowDrag: function(window) {
|
||||||
|
if (!this._inWindowDrag)
|
||||||
|
return;
|
||||||
this.emit('window-drag-end', window);
|
this.emit('window-drag-end', window);
|
||||||
this._inDrag = false;
|
this._inWindowDrag = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
focusSearch: function() {
|
focusSearch: function() {
|
||||||
@@ -481,7 +485,7 @@ const Overview = new Lang.Class({
|
|||||||
shouldToggleByCornerOrButton: function() {
|
shouldToggleByCornerOrButton: function() {
|
||||||
if (this.animationInProgress)
|
if (this.animationInProgress)
|
||||||
return false;
|
return false;
|
||||||
if (this._inDrag)
|
if (this._inItemDrag || this._inWindowDrag)
|
||||||
return false;
|
return false;
|
||||||
if (this._activationTime == 0 || Date.now() / 1000 - this._activationTime > OVERVIEW_ACTIVATION_TIMEOUT)
|
if (this._activationTime == 0 || Date.now() / 1000 - this._activationTime > OVERVIEW_ACTIVATION_TIMEOUT)
|
||||||
return true;
|
return true;
|
||||||
|
@@ -513,7 +513,7 @@ const PadDiagram = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getRingLabelCoords: function (number, dir) {
|
getRingLabelCoords: function (number, dir) {
|
||||||
let numStr = number > 0 ? number.toString() : '';
|
let numStr = number > 0 ? (number + 1).toString() : '';
|
||||||
let dirStr = dir == CW ? 'CW' : 'CCW';
|
let dirStr = dir == CW ? 'CW' : 'CCW';
|
||||||
let labelName = 'LabelRing' + numStr + dirStr;
|
let labelName = 'LabelRing' + numStr + dirStr;
|
||||||
let leaderName = 'LeaderRing' + numStr + dirStr;
|
let leaderName = 'LeaderRing' + numStr + dirStr;
|
||||||
|
754
po/zh_CN.po
754
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user