Fix drag point for application icons

We need to return the "thing that is being dragged" from
getDragActorSource() so that dnd.js can figure out the right
relationship between the dragged object and cursor.

https://bugzilla.gnome.org/show_bug.cgi?id=607351
This commit is contained in:
Owen W. Taylor 2010-02-04 16:57:38 -05:00
parent f1fb0d32c6
commit f5c4e23c9c

View File

@ -504,10 +504,10 @@ AppWellIcon.prototype = {
return this.app.create_icon_texture(APPICON_SIZE);
},
// Returns the original icon that is being used as a source for the cloned texture
// that represents the item as it is being dragged.
// Returns the original actor that should align with the actor
// we show as the item is being dragged.
getDragActorSource: function() {
return this.actor;
return this._icon.icon;
}
}
Signals.addSignalMethods(AppWellIcon.prototype);