2004-08-06 Dan Williams <dcbw@redhat.com>
* panel-applet/* - Add panel applet * src/NetworkManagerPolicy.c src/NetworkManager.c - Get access point lists from NetworkManagerInfo on-demand, and look for ServiceCreate/ServiceDeleted signals to see when we should query NMI for lists * src/NetworkManagerAPList.c - Make sure to init the list's mutex - Convert traversals of the list over to the list iter functions * src/NetworkManagerDbus.[ch] - Use more aptly-named path/service/interface constants - Treat both active and pending devices the same for "getActiveDevice" - Add a "status" method returning "connected", "connecting", or "disconnected" * src/NetworkManagerDevice.c - Honor "ignored" network list when picking best ap to use git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@39 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include "NetworkManagerPolicy.h"
|
||||
#include "NetworkManagerUtils.h"
|
||||
#include "NetworkManagerAP.h"
|
||||
#include "NetworkManagerAPList.h"
|
||||
#include "NetworkManagerDbus.h"
|
||||
|
||||
gboolean allowed_ap_worker_exit = FALSE;
|
||||
extern gboolean debug;
|
||||
@@ -158,6 +160,26 @@ gboolean nm_state_modification_monitor (gpointer user_data)
|
||||
|
||||
g_return_val_if_fail (data != NULL, TRUE);
|
||||
|
||||
/* If the info daemon is now running, get our trusted/preferred ap lists from it */
|
||||
if (data->info_daemon_avail && data->update_ap_lists)
|
||||
{
|
||||
fprintf( stderr, "getting lists from NetworkManagerInfo\n");
|
||||
/* Query info daemon for network lists if its now running */
|
||||
if (data->trusted_ap_list)
|
||||
nm_ap_list_unref (data->trusted_ap_list);
|
||||
data->trusted_ap_list = nm_ap_list_new (NETWORK_TYPE_TRUSTED);
|
||||
if (data->trusted_ap_list)
|
||||
nm_ap_list_populate (data->trusted_ap_list, data);
|
||||
|
||||
if (data->preferred_ap_list)
|
||||
nm_ap_list_unref (data->preferred_ap_list);
|
||||
data->preferred_ap_list = nm_ap_list_new (NETWORK_TYPE_PREFERRED);
|
||||
if (data->preferred_ap_list)
|
||||
nm_ap_list_populate (data->preferred_ap_list, data);
|
||||
|
||||
data->update_ap_lists = FALSE;
|
||||
}
|
||||
|
||||
/* Check global state modified variable, and reset it with
|
||||
* appropriate locking.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user