tasque r72 - in trunk: . src



Author: sharm
Date: Fri Jun 13 14:26:01 2008
New Revision: 72
URL: http://svn.gnome.org/viewvc/tasque?rev=72&view=rev

Log:
* src/TaskTreeView.cs (PulseAnimation): Disable this when the window is
  gone.  Fixes bug #538144 (patch from Ankit Jain).


Modified:
   trunk/ChangeLog
   trunk/src/TaskTreeView.cs

Modified: trunk/src/TaskTreeView.cs
==============================================================================
--- trunk/src/TaskTreeView.cs	(original)
+++ trunk/src/TaskTreeView.cs	Fri Jun 13 14:26:01 2008
@@ -735,14 +735,19 @@
 			
 			private bool PulseAnimation ()
 			{
-				// Emit this signal to cause the TreeView to update the row
-				// where the task is located.  This will allow the
-				// CellRendererPixbuf to update the icon.
-				tree.Model.EmitRowChanged (path, iter);
-				
-				// Return true so that this method will be called after an
-				// additional timeout duration has elapsed.
-				return true;
+				if (tree.Model == null) {
+					// Widget has been closed, no need to call this again
+					return false;
+				} else {
+					// Emit this signal to cause the TreeView to update the row
+					// where the task is located.  This will allow the
+					// CellRendererPixbuf to update the icon.
+					tree.Model.EmitRowChanged (path, iter);
+					
+					// Return true so that this method will be called after an
+					// additional timeout duration has elapsed.
+					return true;
+				}
 			}
 		}
 		#endregion // Private Classes



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