summaryrefslogtreecommitdiff
path: root/greeters
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-07-12 11:34:25 +1000
committerRobert Ancell <robert.ancell@canonical.com>2011-07-12 11:34:25 +1000
commit934e41580cd0c88c00d6983d1abad66055c70d9d (patch)
treef1ba18526b3e00845f4a968a24872e55eeeab759 /greeters
parent58c622f58e25c0f3e4bc69cb1e506c6196bc2b76 (diff)
downloadlightdm-934e41580cd0c88c00d6983d1abad66055c70d9d.tar.gz
Rename ldm_greeter_provide_secret to ldm_greeter_respond - responses may not be secrets
Diffstat (limited to 'greeters')
-rw-r--r--greeters/gtk/lightdm-example-gtk-greeter.c2
-rwxr-xr-xgreeters/python-gtk/lightdm-example-python-gtk-greeter2
-rw-r--r--greeters/qt/loginprompt.cpp2
-rw-r--r--greeters/vala-gtk/lightdm-example-vala-gtk-greeter.vala2
4 files changed, 4 insertions, 4 deletions
diff --git a/greeters/gtk/lightdm-example-gtk-greeter.c b/greeters/gtk/lightdm-example-gtk-greeter.c
index b9dc75e0..b39cce9f 100644
--- a/greeters/gtk/lightdm-example-gtk-greeter.c
+++ b/greeters/gtk/lightdm-example-gtk-greeter.c
@@ -144,7 +144,7 @@ login_cb (GtkWidget *widget)
if (!ldm_greeter_get_in_authentication (greeter))
start_authentication (gtk_entry_get_text (GTK_ENTRY (prompt_entry)));
else
- ldm_greeter_provide_secret (greeter, gtk_entry_get_text (GTK_ENTRY (prompt_entry)));
+ ldm_greeter_respond (greeter, gtk_entry_get_text (GTK_ENTRY (prompt_entry)));
gtk_entry_set_text (GTK_ENTRY (prompt_entry), "");
}
diff --git a/greeters/python-gtk/lightdm-example-python-gtk-greeter b/greeters/python-gtk/lightdm-example-python-gtk-greeter
index abed7e0f..e920e31f 100755
--- a/greeters/python-gtk/lightdm-example-python-gtk-greeter
+++ b/greeters/python-gtk/lightdm-example-python-gtk-greeter
@@ -237,7 +237,7 @@ class Greeter:
def password_activate_cb(self, widget):
self.password_entry.set_sensitive(False)
- self.greeter.provide_secret(self.password_entry.get_text())
+ self.greeter.respond(self.password_entry.get_text())
def show_prompt_cb(self, greeter, text):
self.password_entry.show()
diff --git a/greeters/qt/loginprompt.cpp b/greeters/qt/loginprompt.cpp
index fb632985..2f9d57b0 100644
--- a/greeters/qt/loginprompt.cpp
+++ b/greeters/qt/loginprompt.cpp
@@ -64,5 +64,5 @@ void LoginPrompt::onAuthenticationComplete(bool success)
void LoginPrompt::prompt(const QString &message) {
qDebug() << message;
- m_greeter->provideSecret(ui->password->text());
+ m_greeter->respond(ui->password->text());
}
diff --git a/greeters/vala-gtk/lightdm-example-vala-gtk-greeter.vala b/greeters/vala-gtk/lightdm-example-vala-gtk-greeter.vala
index f3794831..b628caa5 100644
--- a/greeters/vala-gtk/lightdm-example-vala-gtk-greeter.vala
+++ b/greeters/vala-gtk/lightdm-example-vala-gtk-greeter.vala
@@ -31,7 +31,7 @@ class Greeter
private void password_activate_cb (Gtk.Entry entry)
{
password_entry.sensitive = false;
- greeter.provide_secret (password_entry.text);
+ greeter.respond (password_entry.text);
}
private void connect_cb (LightDM.Greeter greeter)