[gnome-shell] Remove sidebar



commit b8647cc00e0e20dae679e4dca2fe1f36813dc5a5
Author: Dan Winship <danw gnome org>
Date:   Tue Mar 30 10:32:15 2010 -0400

    Remove sidebar

 data/gnome-shell.schemas |   57 -------
 js/ui/Makefile.am        |    3 -
 js/ui/main.js            |    3 -
 js/ui/sidebar.js         |  264 -------------------------------
 js/ui/statusMenu.js      |   13 --
 js/ui/widget.js          |  364 ------------------------------------------
 js/ui/widgetBox.js       |  395 ----------------------------------------------
 7 files changed, 0 insertions(+), 1099 deletions(-)
---
diff --git a/data/gnome-shell.schemas b/data/gnome-shell.schemas
index 06ce650..7c17afe 100644
--- a/data/gnome-shell.schemas
+++ b/data/gnome-shell.schemas
@@ -58,63 +58,6 @@
       </schema>
 
       <schema>
-        <key>/schemas/desktop/gnome/shell/sidebar/visible</key>
-	<applyto>/desktop/gnome/shell/sidebar/visible</applyto>
-	<owner>gnome-shell</owner>
-	<type>bool</type>
-	<default>false</default>
-	<locale name="C">
-	  <short>Whether or not to display the sidebar</short>
-	  <long>
-	    Determines whether or not the sidebar is visible.
-	  </long>
-	</locale>
-      </schema>
-
-      <schema>
-        <key>/schemas/desktop/gnome/shell/sidebar/expanded</key>
-	<applyto>/desktop/gnome/shell/sidebar/expanded</applyto>
-	<owner>gnome-shell</owner>
-	<type>bool</type>
-	<default>true</default>
-	<locale name="C">
-	  <short>Whether the sidebar should be in the expanded (wide) mode</short>
-	  <long>
-	    Controls the expanded/collapsed state of the sidebar.
-	  </long>
-	</locale>
-      </schema>
-
-      <schema>
-        <key>/schemas/desktop/gnome/shell/sidebar/autohide</key>
-	<applyto>/desktop/gnome/shell/sidebar/autohide</applyto>
-	<owner>gnome-shell</owner>
-	<type>bool</type>
-	<default>true</default>
-	<locale name="C">
-	  <short>Whether the sidebar should automatically hide itself in compact mode</short>
-	  <long>
-	    Controls the autohide state of the sidebar.
-	  </long>
-	</locale>
-      </schema>
-
-      <schema>
-        <key>/schemas/desktop/gnome/shell/sidebar/widgets</key>
-	<applyto>/desktop/gnome/shell/sidebar/widgets</applyto>
-	<owner>gnome-shell</owner>
-	<type>list</type>
-	<list_type>string</list_type>
-	<default>[imports.ui.widget.ClockWidget,imports.ui.widget.AppsWidget,imports.ui.widget.RecentDocsWidget]</default>
-	<locale name="C">
-	  <short>The widgets to display in the sidebar</short>
-	  <long>
-	    The widgets to display in the sidebar, in order from top to bottom. Each widget "name" is actually a JavaScript expression referring to a widget constructor object.
-	  </long>
-	</locale>
-      </schema>
-
-      <schema>
         <key>/schemas/desktop/gnome/shell/disabled_extensions</key>
         <applyto>/desktop/gnome/shell/disabled_extensions</applyto>
         <owner>gnome-shell</owner>
diff --git a/js/ui/Makefile.am b/js/ui/Makefile.am
index 974cc60..7cd7cc9 100644
--- a/js/ui/Makefile.am
+++ b/js/ui/Makefile.am
@@ -24,11 +24,8 @@ dist_jsui_DATA =		\
 	runDialog.js		\
 	search.js           \
 	shellDBus.js		\
-	sidebar.js		\
 	statusMenu.js		\
 	tweener.js		\
-	widget.js		\
-	widgetBox.js		\
 	windowAttentionHandler.js      \
 	windowManager.js	\
 	workspacesView.js	\
diff --git a/js/ui/main.js b/js/ui/main.js
index bb837a3..677e587 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -24,7 +24,6 @@ const LookingGlass = imports.ui.lookingGlass;
 const NotificationDaemon = imports.ui.notificationDaemon;
 const WindowAttentionHandler = imports.ui.windowAttentionHandler;
 const ShellDBus = imports.ui.shellDBus;
-const Sidebar = imports.ui.sidebar;
 const WindowManager = imports.ui.windowManager;
 
 const DEFAULT_BACKGROUND_COLOR = new Clutter.Color();
@@ -32,7 +31,6 @@ DEFAULT_BACKGROUND_COLOR.from_pixel(0x2266bbff);
 
 let chrome = null;
 let panel = null;
-let sidebar = null;
 let placesManager = null;
 let overview = null;
 let runDialog = null;
@@ -109,7 +107,6 @@ function start() {
     overview = new Overview.Overview();
     chrome = new Chrome.Chrome();
     panel = new Panel.Panel();
-    sidebar = new Sidebar.Sidebar();
     wm = new WindowManager.WindowManager();
     notificationDaemon = new NotificationDaemon.NotificationDaemon();
     windowAttentionHandler = new WindowAttentionHandler.WindowAttentionHandler();
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index e8e66d9..1cf0c41 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -18,8 +18,6 @@ const Panel = imports.ui.panel;
 // Copyright (C) 2004-2005 James M. Cape <jcape ignore-your tv>.
 // Copyright (C) 2008,2009 Red Hat, Inc.
 
-const SIDEBAR_VISIBLE_KEY = 'sidebar/visible';
-
 function StatusMenu() {
     this._init();
 }
@@ -128,17 +126,6 @@ StatusMenu.prototype = {
         this._menu.append(item);
         item.show();
 
-        let gconf = Shell.GConf.get_default();
-        item = new Gtk.CheckMenuItem({ label: _("Sidebar"),
-                                       active: gconf.get_boolean(SIDEBAR_VISIBLE_KEY) });
-        item.connect('activate', Lang.bind(this,
-            function() {
-                gconf.set_boolean(SIDEBAR_VISIBLE_KEY, this._sidebarItem.active);
-            }));
-        this._menu.append(item);
-        item.show();
-        this._sidebarItem = item;
-
         item = this._createImageMenuItem(_("System Preferences..."), 'preferences-desktop');
         item.connect('activate', Lang.bind(this, this._onPreferencesActivate));
         this._menu.append(item);



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