banshee r4558 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor



Author: abock
Date: Wed Sep 17 15:50:23 2008
New Revision: 4558
URL: http://svn.gnome.org/viewvc/banshee?rev=4558&view=rev

Log:
2008-09-17  Aaron Bockover  <abock gnome org>

    * src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs:
    Added logic to make focus and prelight play nice when doing the pulsing



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs	Wed Sep 17 15:50:23 2008
@@ -241,12 +241,22 @@
                         button.StartPulsing ();
                     });
                 };
+                
                 sync_all_button.FocusOutEvent += delegate {
+                    if (sync_all_button.State == StateType.Prelight) {
+                        return;
+                    }
+                    
                     ForeachSyncButton (delegate (SyncButton button) {
                         button.StopPulsing ();
                     });
                 };
+                
                 sync_all_button.StateChanged += delegate {
+                    if (sync_all_button.HasFocus) {
+                        return;
+                    }
+                
                     ForeachSyncButton (delegate (SyncButton button) {
                         if (sync_all_button.State == StateType.Prelight) {
                             button.StartPulsing ();
@@ -255,6 +265,7 @@
                         }
                     });
                 };
+                
                 sync_all_button.Clicked += delegate {
                     InvokeFieldSync ();
                 };



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