Set focus on the entry field, rather than leaving things to luck.
authormdw <mdw>
Thu, 3 Dec 1998 00:56:29 +0000 (00:56 +0000)
committermdw <mdw>
Thu, 3 Dec 1998 00:56:29 +0000 (00:56 +0000)
xgetline.c

index a7c505f..efdbb7f 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: xgetline.c,v 1.5 1998/12/03 00:39:44 mdw Exp $
+ * $Id: xgetline.c,v 1.6 1998/12/03 00:56:29 mdw Exp $
  *
  * Fetch a line of text from the user
  *
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: xgetline.c,v $
+ * Revision 1.6  1998/12/03 00:56:29  mdw
+ * Set focus on the entry field, rather than leaving things to luck.
+ *
  * Revision 1.5  1998/12/03 00:39:44  mdw
  * Force focus when starting up.
  *
@@ -334,6 +337,7 @@ int main(int argc, char *argv[])
 
   gtk_widget_realize(win);
   mdwfocus(win);
+  gtk_widget_grab_focus(entry);
   gtk_widget_show(win);
   gtk_main();