network-manager-applet r460 - in trunk: . src



Author: dcbw
Date: Fri Jan 18 03:09:50 2008
New Revision: 460
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=460&view=rev

Log:
2008-01-17  Dan Williams  <dcbw redhat com>

	* src/applet.c
		- (foo_manager_running_cb): make sure to stop any ongoing animation
			idle handler if NM disappears



Modified:
   trunk/ChangeLog
   trunk/src/applet.c

Modified: trunk/src/applet.c
==============================================================================
--- trunk/src/applet.c	(original)
+++ trunk/src/applet.c	Fri Jan 18 03:09:50 2008
@@ -1060,7 +1060,12 @@
 {
 	NMApplet *applet = NM_APPLET (user_data);
 
-	running ? g_message ("NM appeared") : g_message ("NM disappeared");
+	if (running) {
+		g_message ("NM appeared");
+	} else {
+		g_message ("NM disappeared");
+		clear_animation_timeout (applet);
+	}
 
 	applet->nm_running = running;
 	applet_schedule_update_icon (applet);



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