[gnome-music/wip/gtkmaster: 9/12] Add close button



commit 983f89c664f5726d5d406b42e242c94ee79d99b7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu May 30 18:59:42 2013 +0200

    Add close button

 libgd          |    2 +-
 src/toolbar.js |   11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/libgd b/libgd
index 801ddd1..7832fc3 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 801ddd1edd4c88f07468938bd6166e3b2a433730
+Subproject commit 7832fc35a7bf8c58febc8605feb1dede0591c9ec
diff --git a/src/toolbar.js b/src/toolbar.js
index 01bf21a..c02673d 100644
--- a/src/toolbar.js
+++ b/src/toolbar.js
@@ -51,6 +51,7 @@ const Toolbar = new Lang.Class({
         this._addBackButton();
         this._addSearchButton();
         this._addSelectButton();
+        this._addCloseButton();
     },
 
     set_stack: function(stack) {
@@ -117,6 +118,16 @@ const Toolbar = new Lang.Class({
                                                         label: _("Select") });
         this.pack_end(this._selectButton);
         this._selectButton.show();
+    },
+
+    _addCloseButton: function() {
+        this._closeSeparator = new Gtk.Separator({ orientation: Gtk.Orientation.VERTICAL });
+        this.pack_end(this._closeSeparator);
+
+        this._closeButton = new Gd.HeaderCloseButton();
+        this.pack_end(this._closeButton);
+        this._closeSeparator.show();
+        this._closeButton.show();
     }
 });
 Signals.addSignalMethods(Toolbar.prototype);


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