[gnome-shell/overlay-design02] Make workspaces accept a drop of AppDisplay.WellDisplayItem



commit cdee026095b163e45fc6ebf03516116140feef20
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date:   Mon Jun 29 12:28:21 2009 -0400

    Make workspaces accept a drop of AppDisplay.WellDisplayItem
    
    AppDispplay.WellDisplayItem needed to be added along with the
    GenericDisplay.GenericDisplayItem as a type of a drop object
    that workspaces accept.

 js/ui/workspaces.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js
index 16769ae..082545a 100644
--- a/js/ui/workspaces.js
+++ b/js/ui/workspaces.js
@@ -11,6 +11,7 @@ const Pango = imports.gi.Pango;
 const Shell = imports.gi.Shell;
 const Signals = imports.signals;
 
+const AppDisplay = imports.ui.appDisplay;
 const DND = imports.ui.dnd;
 const GenericDisplay = imports.ui.genericDisplay;
 const Main = imports.ui.main;
@@ -752,7 +753,7 @@ Workspace.prototype = {
                                                  false, // don't create workspace
                                                  time);
             return true;
-        } else if (source instanceof GenericDisplay.GenericDisplayItem) {
+        } else if (source instanceof GenericDisplay.GenericDisplayItem || source instanceof AppDisplay.WellDisplayItem) {
             this._metaWorkspace.activate(time);
             source.launch();
             return true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]