[gnome-shell] placeDisplay: Remove "Connect to..." item



commit 79408d359c7713abf5b6fb6b7ff79ecb3325f9bf
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Aug 28 21:27:24 2012 +0200

    placeDisplay: Remove "Connect to..." item
    
    Opening a dialog without an associated application is odd, so require
    users to use nautilus itself to create new connections.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682817

 js/ui/placeDisplay.js |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/js/ui/placeDisplay.js b/js/ui/placeDisplay.js
index fcdb775..1b27f2f 100644
--- a/js/ui/placeDisplay.js
+++ b/js/ui/placeDisplay.js
@@ -153,26 +153,8 @@ const PlacesManager = new Lang.Class({
                 Gio.app_info_launch_default_for_uri(desktopUri, _makeLaunchContext(params));
             });
 
-        this._connect = new PlaceInfo('special:connect', _("Connect to..."),
-            function (size) {
-                // do NOT use St.Icon here, it crashes the shell
-                // see wanda.js for details
-                return St.TextureCache.get_default().load_icon_name(null,
-                                                                    'applications-internet',
-                                                                    St.IconType.FULLCOLOR,
-                                                                    size);
-            },
-            function (params) {
-                // BUG: nautilus-connect-server doesn't have a desktop file, so we can't
-                // launch it with the workspace from params. It's probably pretty rare
-                // and odd to drag this place onto a workspace in any case
-
-                Util.spawn(['nautilus-connect-server']);
-            });
-
         this._defaultPlaces.push(this._home);
         this._defaultPlaces.push(this._desktopMenu);
-        this._defaultPlaces.push(this._connect);
 
         /*
         * Show devices, code more or less ported from nautilus-places-sidebar.c



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