[gnome-music/wip/gtkmaster: 40/40] Add close button
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/gtkmaster: 40/40] Add close button
- Date: Wed, 19 Jun 2013 17:58:45 +0000 (UTC)
commit f70996bb145d1f6bfaf8125193b0ee976294508d
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..4a4b509 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 801ddd1edd4c88f07468938bd6166e3b2a433730
+Subproject commit 4a4b50968143ba4a8f259dc85b80dd3eadce2c84
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]