[gnome-boxes] CollectionView.ui_state_changed remove switch
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-boxes] CollectionView.ui_state_changed remove switch
- Date: Mon, 19 Nov 2012 10:01:34 +0000 (UTC)
commit b53aa59032f29f09fabe4ab6c534e54e963c1de8
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Nov 16 16:00:59 2012 +0100
    CollectionView.ui_state_changed remove switch
    
    No need for the big switch anymore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688473
 src/collection-view.vala |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index a481110..e1da313 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -65,21 +65,8 @@ private class Boxes.CollectionView: Boxes.UI {
     }
 
     public override void ui_state_changed () {
-        switch (ui_state) {
-        case UIState.COLLECTION:
+        if (ui_state == UIState.COLLECTION)
             icon_view.unselect_all ();
-            break;
-
-        case UIState.CREDS:
-            break;
-
-        case UIState.WIZARD:
-            break;
-
-        case UIState.PROPERTIES:
-            break;
-        }
-
         fade_actor (actor, ui_state == UIState.COLLECTION ? 255 : 0);
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]