[gnome-music/wip/gtkmaster: 10/12] Do not show close button on selection mode
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/gtkmaster: 10/12] Do not show close button on selection mode
- Date: Fri, 21 Jun 2013 14:56:54 +0000 (UTC)
commit 560362c93e0b6dcaaf11ba6621fa28154ed0da86
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jun 19 20:04:27 2013 +0200
Do not show close button on selection mode
src/toolbar.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/toolbar.js b/src/toolbar.js
index c02673d..cf33c1f 100644
--- a/src/toolbar.js
+++ b/src/toolbar.js
@@ -94,6 +94,14 @@ const Toolbar = new Lang.Class({
this._backButton.show();
else
this._backButton.hide();
+
+ if (this._selectionMode) {
+ this._closeSeparator.hide();
+ this._closeButton.hide();
+ } else {
+ this._closeSeparator.show();
+ this._closeButton.show();
+ }
},
_addBackButton: function() {
@@ -126,8 +134,6 @@ const Toolbar = new Lang.Class({
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]