[gnome-sound-recorder] mainWindow.js: Remove window title when 0 sounds



commit a6b668d5a41904f9d9240ceff7ef9ec75b9fd1c7
Author: Damián Nohales <damiannohaes gmail com>
Date:   Fri Apr 18 16:47:49 2014 -0500

    mainWindow.js: Remove window title when 0 sounds
    
    Signed-off-by: Meg Ford <megford gnome org>

 src/mainWindow.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 1d84e8f..05c7b03 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -324,8 +324,11 @@ const MainView = new Lang.Class({
             title = Gettext.ngettext("%d Recorded Sound",
                                      "%d Recorded Sounds", 
                                       sounds).format(sounds);
-            header.set_title(title);
+        } else {
+            title = "";
         }
+        header.set_title(title);
+
         this.listBox = null;
         this._startIdx = 0;
         this._endIdx = offsetController.getEndIdx();


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