globals.c revision 6d36ef34
1/*
2
3Copyright (c) 1987, 1988  X Consortium
4
5Permission is hereby granted, free of charge, to any person obtaining
6a copy of this software and associated documentation files (the
7"Software"), to deal in the Software without restriction, including
8without limitation the rights to use, copy, modify, merge, publish,
9distribute, sublicense, and/or sell copies of the Software, and to
10permit persons to whom the Software is furnished to do so, subject to
11the following conditions:
12
13The above copyright notice and this permission notice shall be included
14in all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
20OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22OTHER DEALINGS IN THE SOFTWARE.
23
24Except as contained in this notice, the name of the X Consortium shall
25not be used in advertising or otherwise to promote the sale, use or
26other dealings in this Software without prior written authorization
27from the X Consortium.
28
29*/
30
31
32#include "man.h"
33
34Xman_Resources resources;       /* Resource manager sets these. */
35
36/* bookkeeping global variables. */
37
38Widget help_widget;             /* The help widget. */
39
40int default_height, default_width;      /* Approximately the default width and
41                                           height, of the manpage when shown,
42                                           the the top level manual page
43                                           window */
44
45Manual *manual;                 /* The manual structure. */
46
47int sections;                   /* The number of manual sections. */
48
49int man_pages_shown;            /* The current number of manual
50                                   pages being shown, if 0 we exit. */
51
52Widget initial_widget;          /* The initial widget, never realized. */
53
54XContext manglobals_context;    /* The context for man_globals. */
55