~mdw
/
xtoys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7347b0d
)
Set focus on the entry field, rather than leaving things to luck.
author
mdw
<mdw>
Thu, 3 Dec 1998 00:56:29 +0000
(
00:56
+0000)
committer
mdw
<mdw>
Thu, 3 Dec 1998 00:56:29 +0000
(
00:56
+0000)
xgetline.c
patch
|
blob
|
blame
|
history
diff --git
a/xgetline.c
b/xgetline.c
index
a7c505f
..
efdbb7f
100644
(file)
--- a/
xgetline.c
+++ b/
xgetline.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Fetch a line of text from the user
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: xgetline.c,v $
/*----- 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.
*
* 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_realize(win);
mdwfocus(win);
+ gtk_widget_grab_focus(entry);
gtk_widget_show(win);
gtk_main();
gtk_widget_show(win);
gtk_main();