[banshee/stable-1.8] [Nereid] Prevent crash on startup in MeeGo



commit 0712171b7bb232ae555c95183d3772fbdceca4c3
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sun Nov 14 12:42:43 2010 -0600

    [Nereid] Prevent crash on startup in MeeGo

 src/Clients/Nereid/Nereid/PlayerInterface.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index 1a321c8..44172c3 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -97,10 +97,10 @@ namespace Nereid
         private int? original_seek_width;
         private void SetSimple (bool simple)
         {
-            main_menu.Visible =
-            source_box.Visible =
-            footer_toolbar.Visible =
-            track_info_container.Visible = !simple;
+            var widgets = new Widget [] { main_menu, source_box, footer_toolbar, track_info_container };
+            foreach (var w in widgets.Where (w => w != null)) {
+                w.Visible = !simple;
+            }
 
             original_seek_width = original_seek_width ?? seek_slider.SeekSlider.WidthRequest;
             seek_slider.SeekSlider.WidthRequest = original_seek_width.Value + (simple ? 100 : 0);



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