dnd: Rename DND.removeMonitor() to DND.removeDragMonitor()

DND.addDragMonitor() and DND.removeMonitor() are inconsistently
named, so rename the latter.

https://bugzilla.gnome.org/show_bug.cgi?id=652730
This commit is contained in:
Florian Müllner 2011-06-27 18:59:56 +02:00
parent ab0a5d4a53
commit 737f395d6c
4 changed files with 4 additions and 4 deletions

View File

@ -324,7 +324,7 @@ Dash.prototype = {
this._favRemoveTarget = null;
}));
}
DND.removeMonitor(this._dragMonitor);
DND.removeDragMonitor(this._dragMonitor);
},
_onDragMotion: function(dragEvent) {

View File

@ -61,7 +61,7 @@ function addDragMonitor(monitor) {
dragMonitors.push(monitor);
}
function removeMonitor(monitor) {
function removeDragMonitor(monitor) {
for (let i = 0; i < dragMonitors.length; i++)
if (dragMonitors[i] == monitor) {
dragMonitors.splice(i, 1);

View File

@ -220,7 +220,7 @@ Overview.prototype = {
}
this._resetWindowSwitchTimeout();
this._lastHoveredWindow = null;
DND.removeMonitor(this._dragMonitor);
DND.removeDragMonitor(this._dragMonitor);
this.endItemDrag();
},

View File

@ -449,7 +449,7 @@ WorkspacesView.prototype = {
Mainloop.source_remove(this._timeoutId);
this._timeoutId = 0;
}
DND.removeMonitor(this._dragMonitor);
DND.removeDragMonitor(this._dragMonitor);
this._inDrag = false;
for (let i = 0; i < this._workspaces.length; i++)