Hello!
Attached is a patch for two improvements to the password entry dialog
(used at least by the word importer); now the textfield is automatically
focused, and pressing return closes the dialog.


-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
                                                 -- Benjamin Franklin
Index: xap_UnixDlg_Password.cpp
===================================================================
RCS file: /cvsroot/abi/src/af/xap/unix/xap_UnixDlg_Password.cpp,v
retrieving revision 1.5
diff -u -r1.5 xap_UnixDlg_Password.cpp
--- xap_UnixDlg_Password.cpp    4 Dec 2001 00:28:36 -0000       1.5
+++ xap_UnixDlg_Password.cpp    24 Apr 2002 19:35:38 -0000
@@ -143,6 +143,12 @@
   gtk_box_pack_start (GTK_BOX (container), password, TRUE, TRUE, 0);
   gtk_entry_set_visibility (GTK_ENTRY (password), FALSE);
 
+  gtk_widget_grab_focus(password);
+
+  gtk_signal_connect (GTK_OBJECT(password), "activate",
+                     GTK_SIGNAL_FUNC(s_ok_clicked), 
+                     (gpointer)this);
+
   mTextEntry = password;
 }
 

Attachment: msg23821/pgp00000.pgp
Description: PGP signature

Reply via email to