search-display: Fix getDragActorSource()/getDragActor()

The 'icon' property in search results' meta info has been replaced
by a 'createIcon' property, adjust to this change.

https://bugzilla.gnome.org/show_bug.cgi?id=645990
This commit is contained in:
Florian Müllner 2011-03-29 13:32:53 +02:00
parent 9396d736f2
commit 429f809b71

View File

@ -77,11 +77,12 @@ SearchResult.prototype = {
}, },
getDragActorSource: function() { getDragActorSource: function() {
return this.metaInfo['icon']; // not exactly right, but alignment problems are hard to notice
return this._content;
}, },
getDragActor: function(stageX, stageY) { getDragActor: function(stageX, stageY) {
return new Clutter.Clone({ source: this.metaInfo['icon'] }); return this.metaInfo['createIcon'](Main.overview.dash.iconSize);
}, },
shellWorkspaceLaunch: function(params) { shellWorkspaceLaunch: function(params) {