[empathy] password-dialog: activate the dialog when the entry is activated (#642296)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] password-dialog: activate the dialog when the entry is activated (#642296)
- Date: Mon, 14 Feb 2011 15:36:53 +0000 (UTC)
commit 94b8532b6cc83fa8924d5f734d3a92db5feac479
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Feb 14 16:33:10 2011 +0100
password-dialog: activate the dialog when the entry is activated (#642296)
libempathy-gtk/empathy-password-dialog.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-password-dialog.c b/libempathy-gtk/empathy-password-dialog.c
index 2491872..6a01cd2 100644
--- a/libempathy-gtk/empathy-password-dialog.c
+++ b/libempathy-gtk/empathy-password-dialog.c
@@ -148,6 +148,13 @@ password_entry_changed_cb (GtkEditable *entry,
!EMP_STR_EMPTY (str));
}
+static void
+password_entry_activate_cb (GtkEntry *entry,
+ EmpathyPasswordDialog *self)
+{
+ gtk_dialog_response (GTK_DIALOG (self), GTK_RESPONSE_OK);
+}
+
static gboolean
password_dialog_grab_keyboard (GtkWidget *widget,
GdkEvent *event,
@@ -294,6 +301,8 @@ empathy_password_dialog_constructed (GObject *object)
G_CALLBACK (clear_icon_released_cb), NULL);
g_signal_connect (priv->entry, "changed",
G_CALLBACK (password_entry_changed_cb), dialog);
+ g_signal_connect (priv->entry, "activate",
+ G_CALLBACK (password_entry_activate_cb), dialog);
gtk_box_pack_start (box, priv->entry, FALSE, FALSE, 0);
gtk_widget_show (priv->entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]