[gnome-shell] search-display: Fix getDragActorSource()/getDragActor()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] search-display: Fix getDragActorSource()/getDragActor()
- Date: Sat, 2 Apr 2011 09:35:08 +0000 (UTC)
commit 429f809b71caba206883758d967ca292b5981b04
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Mar 29 13:32:53 2011 +0200
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
js/ui/searchDisplay.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js
index f3d463a..ffe9fa4 100644
--- a/js/ui/searchDisplay.js
+++ b/js/ui/searchDisplay.js
@@ -77,11 +77,12 @@ SearchResult.prototype = {
},
getDragActorSource: function() {
- return this.metaInfo['icon'];
+ // not exactly right, but alignment problems are hard to notice
+ return this._content;
},
getDragActor: function(stageX, stageY) {
- return new Clutter.Clone({ source: this.metaInfo['icon'] });
+ return this.metaInfo['createIcon'](Main.overview.dash.iconSize);
},
shellWorkspaceLaunch: function(params) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]