[gnome-music/wip/gtkmaster] Do not show close button on selection mode



commit cd557e53c17fafc42afa74296c053436369c420f
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 |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/toolbar.js b/src/toolbar.js
index c02673d..348ef22 100644
--- a/src/toolbar.js
+++ b/src/toolbar.js
@@ -65,10 +65,15 @@ const Toolbar = new Lang.Class({
     setSelectionMode: function(selectionMode) {
         this._selectionMode = selectionMode;
 
-        if (selectionMode)
+        if (selectionMode) {
             this.get_style_context().add_class('selection-mode');
-        else
+            this._closeSeparator.hide();
+            this._closeButton.hide();
+        } else {
             this.get_style_context().remove_class('selection-mode');
+            this._closeSeparator.show();
+            this._closeButton.show();
+        }
 
         this._update();
     },


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