banshee r3495 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.Widgets



Author: scottp
Date: Thu Mar 20 22:23:18 2008
New Revision: 3495
URL: http://svn.gnome.org/viewvc/banshee?rev=3495&view=rev

Log:
* src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTileHost.cs:
Got rid of padding stuff. That will be taken care of in
AnimatedVBox.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTileHost.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTileHost.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTileHost.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTileHost.cs	Thu Mar 20 22:23:18 2008
@@ -48,9 +48,9 @@
             
             box = new AnimatedVBox ();
             box.Spacing = 8;
-            box.Show ();
 
             Add (box);
+            ShowAll ();
 
             if (ServiceManager.Contains<UserJobManager> ()) {
                 UserJobManager job_manager = ServiceManager.Get<UserJobManager> ();
@@ -67,18 +67,6 @@
             }
         }
 
-        public new void Show ()
-        {
-            TopPadding = 8;
-            base.Show ();
-        }
-
-        public new void Hide ()
-        {
-            TopPadding = 0;
-            base.Hide ();
-        }
-
         private void AddJob (IUserJob job)
         {                    
             if (job == null || job.IsFinished) {
@@ -90,7 +78,6 @@
                 job_tiles.Add (job, tile);
                 box.PackEnd (tile, Easing.QuadraticOut);
                 tile.Show ();
-                Show ();
             }
         }
         
@@ -120,15 +107,6 @@
                         box.Remove (tile);
                         job_tiles.Remove (args.Job);
                     }
-    
-                    if (job_tiles.Count <= 0) {
-                        // Don't actually hide the widget, since that screws
-                        // with the last widget's ease-out animation.
-                        
-                        // All subwidgets end up hiding themselves anyway,
-                        // so all we need to do is make sure we have no padding.
-                        TopPadding = 0;
-                    }
                 }
             });
         }



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