From d5aa276c418bcb276db35fb74945a111b085be7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 19 Aug 2014 18:57:36 +0200 Subject: [PATCH] search: Fix custom drag actor source The existing code broke when commit 792b963bda8c 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. --- js/ui/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/search.js b/js/ui/search.js index 1bb656a0a..16ec4d2eb 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -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);