From 955f1d200c2a15bce4046f75f5d356a1f5f0ce39 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 1 Jan 2010 13:55:49 -0200 Subject: Pressing enter on Host text entry activates Save/Connect button --- hardinfo2/remote.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardinfo2/remote.c b/hardinfo2/remote.c index eed4a308..f6580fac 100644 --- a/hardinfo2/remote.c +++ b/hardinfo2/remote.c @@ -944,6 +944,8 @@ static HostDialog *host_dialog_new(GtkWidget * parent, host_combo_changed_cb(GTK_COMBO_BOX(cmb_type), host_dlg); host_dialog_hostname_changed(GTK_EDITABLE(txt_hostname), host_dlg); + gtk_entry_set_activates_default(GTK_ENTRY(txt_hostname), TRUE); + return host_dlg; } -- cgit v1.2.3