[gnome-boxes] app: explain better why we make the view not visible at open() time



commit 408d7f079ec09f00815aaeaae15e1c4a4557e8a8
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Mon Aug 13 13:04:45 2012 +0300

    app: explain better why we make the view not visible at open() time

 src/app.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 2eece1c..78b9fa9 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -161,7 +161,9 @@ private class Boxes.App: Boxes.UI {
 
     public void open (string name) {
         ui_state = UIState.COLLECTION;
-        view.visible = false; // to avoid some glitches
+        // we don't want to show the collection items as it will
+        // appear as a glitch when opening a box immediately
+        view.visible = false;
 
         // after "ready" all items should be listed
         foreach (var item in collection.items.data) {
@@ -175,7 +177,9 @@ private class Boxes.App: Boxes.UI {
 
     public bool open_uuid (string uuid) {
         ui_state = UIState.COLLECTION;
-        view.visible = false; // to avoid some glitches
+        // we don't want to show the collection items as it will
+        // appear as a glitch when opening a box immediately
+        view.visible = false;
 
         // after "ready" all items should be listed
         foreach (var item in collection.items.data) {



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