banshee r3367 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Collection.Gui



Author: abock
Date: Sun Mar  2 18:30:09 2008
New Revision: 3367
URL: http://svn.gnome.org/viewvc/banshee?rev=3367&view=rev

Log:
2008-03-02  Aaron Bockover  <abock gnome org>

    * src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BetaReleaseViewOverlay.cs:
    Fix some small bugs; do not show with --debug passed



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BetaReleaseViewOverlay.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BetaReleaseViewOverlay.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BetaReleaseViewOverlay.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BetaReleaseViewOverlay.cs	Sun Mar  2 18:30:09 2008
@@ -100,10 +100,19 @@
                 ));
                 source.Properties.SetString ("Message.Icon.Name", Stock.Info);
                 source.Properties.SetBoolean ("Message.CanClose", false);
-                source.Properties.SetString ("Message.Action.Label", Catalog.GetString ("I understand this is a preview release"));
+                source.Properties.SetString ("Message.Action.Label", 
+                    Catalog.GetString ("I understand this is a preview release"));
                 source.Properties.Set<EventHandler> ("Message.Action.NotifyHandler", delegate { 
                     stage.Iteration += OnStageIteration;
                     stage.Reset ();
+
+                    ServiceManager.SourceManager.ActiveSourceChanged -= OnActiveSourceChanged;
+
+                    if (source != null) {
+                        source.Properties.RemoveStartingWith ("Message.");
+                        source = null;
+                    }
+                    
                     dismissed = true;
                 });
             }
@@ -128,13 +137,6 @@
                     logo_scale = null;
                 }
 
-                ServiceManager.SourceManager.ActiveSourceChanged -= OnActiveSourceChanged;
-
-                if (source != null) {
-                    source.Properties.RemoveStartingWith ("Message.");
-                    source = null;
-                }
-
                 OnFinished ();
             }
 
@@ -157,7 +159,7 @@
             theme.Context.Radius = 12;
 
             Gdk.Rectangle rect = new Gdk.Rectangle ();
-            rect.Width = (int)Math.Round (widget.Allocation.Width * 0.65);
+            rect.Width = (int)Math.Round (widget.Allocation.Width * 0.75);
 
             int padding = (int)theme.Context.Radius * 2;
             int spacing = padding / 2;

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/TrackListView.cs	Sun Mar  2 18:30:09 2008
@@ -95,8 +95,10 @@
                 };
             }
 
-            overlay = new BetaReleaseViewOverlay (this);
-            overlay.Finished += OnOverlayFinished;
+            if (!Banshee.Base.ApplicationContext.Debugging) {
+                overlay = new BetaReleaseViewOverlay (this);
+                overlay.Finished += OnOverlayFinished;
+            }
         }
         
         private void OnOverlayFinished (object o, EventArgs args)



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