~mdw
/
xtoys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
46e0036
)
Force focus when starting up.
author
mdw
<mdw>
Thu, 3 Dec 1998 00:39:45 +0000
(
00:39
+0000)
committer
mdw
<mdw>
Thu, 3 Dec 1998 00:39:45 +0000
(
00:39
+0000)
xgetline.c
patch
|
blob
|
blame
|
history
xshutdown.c
patch
|
blob
|
blame
|
history
diff --git
a/xgetline.c
b/xgetline.c
index
ed621ae
..
a7c505f
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.
5 1998/12/03 00:39:44
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.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
+56,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
+332,8
@@
int main(int argc, char *argv[])
/* --- Go go go --- */
/* --- Go go go --- */
+ gtk_widget_realize(win);
+ mdwfocus(win);
gtk_widget_show(win);
gtk_main();
gtk_widget_show(win);
gtk_main();
diff --git
a/xshutdown.c
b/xshutdown.c
index
a21dab9
..
f76dc39
100644
(file)
--- a/
xshutdown.c
+++ b/
xshutdown.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: xshutdown.c,v 1.
3 1998/11/30 22:36:49
mdw Exp $
+ * $Id: xshutdown.c,v 1.
4 1998/12/03 00:39:45
mdw Exp $
*
* Pretty GTK interface to waking up an xwait
*
*
* Pretty GTK interface to waking up an xwait
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: xshutdown.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: xshutdown.c,v $
+ * Revision 1.4 1998/12/03 00:39:45 mdw
+ * Force focus when starting up.
+ *
* Revision 1.3 1998/11/30 22:36:49 mdw
* Tidy up tabbing in help texts very slightly.
*
* Revision 1.3 1998/11/30 22:36:49 mdw
* Tidy up tabbing in help texts very slightly.
*
@@
-53,6
+56,7
@@
#include <gtk/gtk.h>
#include <gdk/gdkprivate.h>
#include <gtk/gtk.h>
#include <gdk/gdkprivate.h>
+#include "mdwfocus.h"
#include "mdwopt.h"
#include "quis.h"
#include "xwait.h"
#include "mdwopt.h"
#include "quis.h"
#include "xwait.h"
@@
-229,6
+233,8
@@
int main(int argc, char *argv[])
/* --- Make everything work --- */
/* --- Make everything work --- */
+ gtk_widget_realize(win);
+ mdwfocus(win);
gtk_widget_show(win);
gtk_main();
exit(EXIT_FAILURE);
gtk_widget_show(win);
gtk_main();
exit(EXIT_FAILURE);
@@
-276,6
+282,8
@@
int main(int argc, char *argv[])
/* --- Show the completed window --- */
/* --- Show the completed window --- */
+ gtk_widget_realize(win);
+ mdwfocus(win);
gtk_widget_show(win);
}
gtk_widget_show(win);
}