summaryrefslogtreecommitdiff
path: root/clients/tui/nmtui-connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tui/nmtui-connect.c')
-rw-r--r--clients/tui/nmtui-connect.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/clients/tui/nmtui-connect.c b/clients/tui/nmtui-connect.c
index be03796986..e2ffeb6495 100644
--- a/clients/tui/nmtui-connect.c
+++ b/clients/tui/nmtui-connect.c
@@ -36,16 +36,16 @@
#include "nmtui-connect.h"
#include "nmt-connect-connection-list.h"
#include "nmt-password-dialog.h"
-#include "nmt-secret-agent.h"
+#include "nm-secret-agent-simple.h"
#include "nmt-utils.h"
static void
-secrets_requested (NmtSecretAgent *agent,
- const char *request_id,
- const char *title,
- const char *msg,
- GPtrArray *secrets,
- gpointer user_data)
+secrets_requested (NMSecretAgentSimple *agent,
+ const char *request_id,
+ const char *title,
+ const char *msg,
+ GPtrArray *secrets,
+ gpointer user_data)
{
NmtNewtForm *form;
@@ -53,9 +53,9 @@ secrets_requested (NmtSecretAgent *agent,
nmt_newt_form_run_sync (form);
if (nmt_password_dialog_succeeded (NMT_PASSWORD_DIALOG (form)))
- nmt_secret_agent_response (agent, request_id, secrets);
+ nm_secret_agent_simple_response (agent, request_id, secrets);
else
- nmt_secret_agent_response (agent, request_id, NULL);
+ nm_secret_agent_simple_response (agent, request_id, NULL);
g_object_unref (form);
}
@@ -145,7 +145,7 @@ activate_connection (NMConnection *connection,
label = nmt_newt_label_new (_("Connecting..."));
nmt_newt_form_set_content (form, label);
- agent = nmt_secret_agent_new ();
+ agent = nm_secret_agent_simple_new ("nmtui");
g_signal_connect (agent, "request-secrets", G_CALLBACK (secrets_requested), NULL);
specific_object_path = specific_object ? nm_object_get_path (specific_object) : NULL;