[gnome-documents] selection-toolbar: rearrange layout of buttons in the toolbar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] selection-toolbar: rearrange layout of buttons in the toolbar
- Date: Tue, 21 Aug 2012 16:02:49 +0000 (UTC)
commit dc429155e2aeeed87ba12a21a910897a74b036f5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Aug 21 17:54:07 2012 +0200
selection-toolbar: rearrange layout of buttons in the toolbar
Make it follow the newer mockups.
src/selections.js | 35 ++++++++++++++++++++---------------
1 files changed, 20 insertions(+), 15 deletions(-)
---
diff --git a/src/selections.js b/src/selections.js
index 4189a73..8e2f854 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -764,18 +764,26 @@ const SelectionToolbar = new Lang.Class({
this._leftGroup = new Gtk.ToolItem({ child: this._leftBox });
this.widget.insert(this._leftGroup, -1);
- this._toolbarProperties = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'document-properties-symbolic',
- pixel_size: 16 })});
- this._toolbarProperties.set_tooltip_text(_("Properties"));
- this._leftBox.add(this._toolbarProperties);
- this._toolbarProperties.connect('clicked', Lang.bind(this, this._onToolbarProperties));
+ // open button
+ this._toolbarOpen = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'folder-symbolic',
+ pixel_size: 16 })});
+ this._leftBox.add(this._toolbarOpen);
+ this._toolbarOpen.connect('clicked', Lang.bind(this, this._onToolbarOpen));
+ // print button
this._toolbarPrint = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'printer-symbolic',
pixel_size: 16 })});
this._toolbarPrint.set_tooltip_text(_("Print"));
this._leftBox.add(this._toolbarPrint);
this._toolbarPrint.connect('clicked', Lang.bind(this, this._onToolbarPrint));
+ // trash button
+ this._toolbarTrash = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'user-trash-symbolic',
+ pixel_size: 16 })});
+ this._toolbarTrash.set_tooltip_text(_("Delete"));
+ this._leftBox.add(this._toolbarTrash);
+ this._toolbarTrash.connect('clicked', Lang.bind(this, this._onToolbarTrash));
+
this._separator = new Gtk.SeparatorToolItem({ draw: false,
visible: true });
this._separator.set_expand(true);
@@ -785,6 +793,7 @@ const SelectionToolbar = new Lang.Class({
this._rightGroup = new Gtk.ToolItem({ child: this._rightBox });
this.widget.insert(this._rightGroup, -1);
+ // organize button
this._toolbarCollection = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'list-add-symbolic',
pixel_size: 16 })});
this._toolbarCollection.set_tooltip_text(_("Organize"));
@@ -792,16 +801,12 @@ const SelectionToolbar = new Lang.Class({
this._toolbarCollection.connect('clicked', Lang.bind(this, this._onToolbarCollection));
this._toolbarCollection.show_all();
- this._toolbarTrash = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'user-trash-symbolic',
- pixel_size: 16 })});
- this._toolbarTrash.set_tooltip_text(_("Delete"));
- this._rightBox.add(this._toolbarTrash);
- this._toolbarTrash.connect('clicked', Lang.bind(this, this._onToolbarTrash));
-
- this._toolbarOpen = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'folder-symbolic',
- pixel_size: 16 })});
- this._rightBox.add(this._toolbarOpen);
- this._toolbarOpen.connect('clicked', Lang.bind(this, this._onToolbarOpen));
+ // properties button
+ this._toolbarProperties = new Gtk.Button({ child: new Gtk.Image ({ icon_name: 'document-properties-symbolic',
+ pixel_size: 16 })});
+ this._toolbarProperties.set_tooltip_text(_("Properties"));
+ this._rightBox.add(this._toolbarProperties);
+ this._toolbarProperties.connect('clicked', Lang.bind(this, this._onToolbarProperties));
this.widget.show_all();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]