banshee r4766 - in trunk/banshee: . src/Clients/Nereid/Nereid



Author: gburt
Date: Thu Oct 30 01:22:23 2008
New Revision: 4766
URL: http://svn.gnome.org/viewvc/banshee?rev=4766&view=rev

Log:
2008-10-29  Gabriel Burt  <gabriel burt gmail com>

	* src/Clients/Nereid/Nereid/PlayerInterface.cs: Use a method instead of an
	anonymous delegate to handle a ButtonPress event, fixing a strange crash
	that I think is probably an issue in Mono (BGO #556573).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Clients/Nereid/Nereid/PlayerInterface.cs

Modified: trunk/banshee/src/Clients/Nereid/Nereid/PlayerInterface.cs
==============================================================================
--- trunk/banshee/src/Clients/Nereid/Nereid/PlayerInterface.cs	(original)
+++ trunk/banshee/src/Clients/Nereid/Nereid/PlayerInterface.cs	Thu Oct 30 01:22:23 2008
@@ -192,13 +192,8 @@
             footer_toolbar.ToolbarStyle = ToolbarStyle.BothHoriz;
 
             EventBox status_event_box = new EventBox ();
-            status_event_box.ButtonPressEvent += delegate (object o, ButtonPressEventArgs args) {
-                Source source = ServiceManager.SourceManager.ActiveSource;
-                if (source != null) {
-                    source.CycleStatusFormat ();
-                    UpdateSourceInformation ();
-                }
-            };
+            status_event_box.ButtonPressEvent += OnStatusBoxButtonPress;
+            
             status_label = new Label ();
             status_event_box.Add (status_label);
             
@@ -217,6 +212,15 @@
             primary_vbox.PackStart (footer_toolbar, false, true, 0);
         }
 
+        private void OnStatusBoxButtonPress (object o, ButtonPressEventArgs args) 
+        {
+            Source source = ServiceManager.SourceManager.ActiveSource;
+            if (source != null) {
+                source.CycleStatusFormat ();
+                UpdateSourceInformation ();
+            }
+        }
+
 #endregion
         
 #region Events and Logic Setup



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