diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/uccs-server.c | 4 | ||||
-rw-r--r-- | src/uccs-server.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/uccs-server.c b/src/uccs-server.c index c37e181..69c716b 100644 --- a/src/uccs-server.c +++ b/src/uccs-server.c @@ -115,7 +115,7 @@ uccs_server_init (UccsServer *self) if (g_strcmp0(g_getenv("DBUS_TEST_RUNNER"), "1")) { if (global_client == NULL) { - global_client = nm_client_new(); + global_client = nm_client_new(NULL, NULL); if (global_client != NULL) { g_object_add_weak_pointer(G_OBJECT(global_client), (gpointer *)&global_client); @@ -346,7 +346,7 @@ nm_state_changed (NMClient *client, const GParamSpec *pspec, gpointer user_data) g_return_if_fail(IS_UCCS_SERVER(user_data)); UccsServer * server = UCCS_SERVER(user_data); - if (server->nm_client == NULL || !nm_client_get_manager_running(server->nm_client)) { + if (server->nm_client == NULL || !nm_client_get_nm_running(server->nm_client)) { server->last_network = NM_STATE_DISCONNECTED; } else { server->last_network = nm_client_get_state(server->nm_client); diff --git a/src/uccs-server.h b/src/uccs-server.h index d9782af..4b54f51 100644 --- a/src/uccs-server.h +++ b/src/uccs-server.h @@ -22,7 +22,7 @@ #define __UCCS_SERVER_H__ #include <glib-object.h> -#include <libnm-glib/nm-client.h> +#include <libnm/NetworkManager.h> #include <libsoup/soup.h> #include "server.h" |