[gnome-music/wip/gtkmaster] Do not show close button on selection mode
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/gtkmaster] Do not show close button on selection mode
- Date: Thu, 20 Jun 2013 07:30:01 +0000 (UTC)
commit 438774c52e0ca4128bb476b2e07c592c335d2781
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]