[gnome-shell] search-display: Fix getDragActorSource()/getDragActor()



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]