diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 2491872c2..6a01cd2f8 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); |