[gnome-shell] search: Fix custom drag actor source
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] search: Fix custom drag actor source
- Date: Tue, 19 Aug 2014 17:12:24 +0000 (UTC)
commit d5aa276c418bcb276db35fb74945a111b085be7b
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Aug 19 18:57:36 2014 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 1bb656a..16ec4d2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]