[gnome-documents] toolbar: remove unused ViewSelector
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] toolbar: remove unused ViewSelector
- Date: Mon, 23 Jan 2012 19:36:44 +0000 (UTC)
commit 7ce4fea3a7929c1e1422df424ec4357bb49630df
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Jan 22 23:42:18 2012 -0500
toolbar: remove unused ViewSelector
src/mainToolbar.js | 32 --------------------------------
1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 8dce929..7806731 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -35,38 +35,6 @@ const Global = imports.global;
const Tweener = imports.util.tweener;
const WindowMode = imports.windowMode;
-function ViewSelector() {
- this._init();
-}
-
-ViewSelector.prototype = {
- _init: function() {
- let iconView = new Gtk.ToggleButton({ child: new Gtk.Image({ icon_name: 'view-grid-symbolic',
- pixel_size: 16 }) });
- iconView.get_style_context().add_class('linked');
- iconView.get_style_context().add_class('raised');
-
- let listView = new Gtk.ToggleButton({ child: new Gtk.Image({ icon_name: 'view-list-symbolic',
- pixel_size: 16 }) });
- listView.get_style_context().add_class('linked');
- listView.get_style_context().add_class('raised');
-
- Global.settings.bind('list-view',
- iconView, 'active',
- Gio.SettingsBindFlags.INVERT_BOOLEAN);
- Global.settings.bind('list-view',
- listView, 'active',
- Gio.SettingsBindFlags.DEFAULT);
-
- this.widget = new Gtk.Box({ orientation: Gtk.Orientation.HORIZONTAL,
- spacing: 0 });
- this.widget.add(iconView);
- this.widget.add(listView);
-
- this.widget.show_all();
- }
-};
-
function MainToolbar() {
this._init();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]