search: Fix custom drag actor source

The existing code broke when commit 792b963bda changed the custom
result actor hook to return an object instead of an actor - stop
trying to go through a _delegate to make it work again.
This commit is contained in:
Florian Müllner 2014-08-19 18:57:36 +02:00
parent d54efe0838
commit d5aa276c41

View File

@ -243,8 +243,8 @@ const GridSearchResult = new Lang.Class({
dragSource = icon.icon;
content = { actor: actor, icon: icon };
} else {
if (content._delegate && content._delegate.getDragActorSource)
dragSource = content._delegate.getDragActorSource();
if (content.getDragActorSource)
dragSource = content.getDragActorSource();
}
this.actor.set_child(content.actor);