From: mdw Date: Thu, 3 Dec 1998 00:56:29 +0000 (+0000) Subject: Set focus on the entry field, rather than leaving things to luck. X-Git-Tag: 1.1.0~7 X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/commitdiff_plain/208b901eda367196c4c66a1df9736dc371f0304f Set focus on the entry field, rather than leaving things to luck. --- diff --git a/xgetline.c b/xgetline.c index a7c505f..efdbb7f 100644 --- a/xgetline.c +++ b/xgetline.c @@ -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();