aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-widget.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-07-08 18:58:27 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-07-08 18:58:27 +0800
commita8ed17846fceb8a40fac64bad3bb96963819174f (patch)
tree791717b59f4206ae8a1b51715c08f23b56352e84 /libempathy-gtk/empathy-contact-widget.c
parent5dbfff01661242466f572313986ed2222fad65f5 (diff)
downloadgsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.tar
gsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.tar.gz
gsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.tar.bz2
gsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.tar.lz
gsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.tar.xz
gsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.tar.zst
gsoc2013-empathy-a8ed17846fceb8a40fac64bad3bb96963819174f.zip
Made the Close button the default widget in the contact edit dialog. (Jonny Lamb)
Having this Close button the default widget in the contact edit dialog allows one to enter/edit a contact's alias, and press return when finished, instead of TABing one's to Close, or worse, having to use the mouse! Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1207
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index b80cef2e9..4a29d15de 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -406,6 +406,8 @@ contact_widget_contact_setup (EmpathyContactWidget *information)
g_signal_connect (information->widget_alias, "focus-out-event",
G_CALLBACK (contact_widget_entry_alias_focus_event_cb),
information);
+ /* Make return activate the window default (the Close button) */
+ gtk_entry_set_activates_default (GTK_ENTRY (information->widget_alias), TRUE);
} else {
information->widget_alias = gtk_label_new (NULL);
gtk_label_set_selectable (GTK_LABEL (information->widget_alias), TRUE);