gnome-main-menu r460 - in trunk: . main-menu/src



Author: federico
Date: Tue May 13 21:24:28 2008
New Revision: 460
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=460&view=rev

Log:
bnc372206 - Add notification for NM state even if there's no active interface.
2008-05-09  Magnus Boman  <captain magnus gmail com>

        https://bugzilla.novell.com/show_bug.cgi?id=372206
        Add notification for NM state even if there's no active interface.

        * main-menu/src/network-status-agent.c (nm_get_first_active_device_info):
	Add state change notification callbacks for interfaces until we
	find an active device.

Signed-off-by: Federico Mena Quintero <federico gnu org>


Modified:
   trunk/ChangeLog
   trunk/main-menu/src/network-status-agent.c

Modified: trunk/main-menu/src/network-status-agent.c
==============================================================================
--- trunk/main-menu/src/network-status-agent.c	(original)
+++ trunk/main-menu/src/network-status-agent.c	Tue May 13 21:24:28 2008
@@ -168,11 +168,9 @@
 
 		if (info)
 		{
+			g_signal_connect (nm_device, "notify::state", G_CALLBACK (nm_state_change_cb), agent);
 			if (info->active)
-			{
-				g_signal_connect (nm_device, "notify::state", G_CALLBACK (nm_state_change_cb), agent);
 				break;
-			}
 
 			g_object_unref (info);
 



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