aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-14 23:33:10 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-14 23:33:10 +0800
commit94b8532b6cc83fa8924d5f734d3a92db5feac479 (patch)
treeb1ac10aa965154add4aa5137958e8344da3c2779 /libempathy-gtk
parent6a7796336de7c9a5f6834253c8862d1e752ef5f7 (diff)
downloadgsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.tar
gsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.tar.gz
gsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.tar.bz2
gsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.tar.lz
gsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.tar.xz
gsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.tar.zst
gsoc2013-empathy-94b8532b6cc83fa8924d5f734d3a92db5feac479.zip
password-dialog: activate the dialog when the entry is activated (#642296)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-password-dialog.c9
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);