~mdw
/
xtoys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved to mgLib.
[xtoys]
/
xgetline.c
diff --git
a/xgetline.c
b/xgetline.c
index
ed621ae
..
efdbb7f
100644
(file)
--- a/
xgetline.c
+++ b/
xgetline.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: xgetline.c,v 1.
4 1998/11/30 22:36:47
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,12
@@
/*----- 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.4 1998/11/30 22:36:47 mdw
* Tidy up tabbing in help texts very slightly.
*
* Revision 1.4 1998/11/30 22:36:47 mdw
* Tidy up tabbing in help texts very slightly.
*
@@
-53,6
+59,7
@@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include "mdwfocus.h"
#include "mdwopt.h"
#include "quis.h"
#include "mdwopt.h"
#include "quis.h"
@@
-328,6
+335,9
@@
int main(int argc, char *argv[])
/* --- Go go go --- */
/* --- Go go go --- */
+ gtk_widget_realize(win);
+ mdwfocus(win);
+ gtk_widget_grab_focus(entry);
gtk_widget_show(win);
gtk_main();
gtk_widget_show(win);
gtk_main();