[gnome-shell] placeDisplay: Remove network places
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] placeDisplay: Remove network places
- Date: Mon, 14 Mar 2011 14:33:49 +0000 (UTC)
commit f079501cff549b343f3e9d0228a8057681134fb1
Author: Colin Walters <walters verbum org>
Date: Thu Mar 10 12:42:02 2011 -0500
placeDisplay: Remove network places
It hasn't existed in nautilus for a while now, and we don't
have places at all.
https://bugzilla.gnome.org/show_bug.cgi?id=644402
js/ui/placeDisplay.js | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/js/ui/placeDisplay.js b/js/ui/placeDisplay.js
index 450a7ba..c50c281 100644
--- a/js/ui/placeDisplay.js
+++ b/js/ui/placeDisplay.js
@@ -176,37 +176,8 @@ PlacesManager.prototype = {
Util.spawn(['nautilus-connect-server']);
});
- let networkApp = null;
- try {
- networkApp = Shell.AppSystem.get_default().load_from_desktop_file('gnome-network-scheme.desktop');
- } catch(e) {
- try {
- networkApp = Shell.AppSystem.get_default().load_from_desktop_file('network-scheme.desktop');
- } catch(e) {
- log('Cannot create "Network" item, .desktop file not found or corrupt.');
- }
- }
-
- if (networkApp != null) {
- this._network = new PlaceInfo('special:network', networkApp.get_name(),
- function(size) {
- return networkApp.create_icon_texture(size);
- },
- function (params) {
- params = Params.parse(params, { workspace: null,
- timestamp: 0 });
-
- networkApp.launch_full(params.timestamp, [],
- params.workspace ? params.workspace.index() : -1);
- });
- }
-
this._defaultPlaces.push(this._home);
this._defaultPlaces.push(this._desktopMenu);
-
- if (this._network)
- this._defaultPlaces.push(this._network);
-
this._defaultPlaces.push(this._connect);
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]