-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.c
84 lines (78 loc) · 2.58 KB
/
help.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
* help.c
* Help menu callbacks for mgv.
*
* Copyright (C) 1996 Eric A. Howe
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Authors: Matthew D. Francey
* Eric A. Howe ([email protected])
*/
#include <wlib/rcs.h>
MU_ID("$Mu: mgv/help.c 1.87 2001/03/10 22:57:35 $")
#include <wlib/wlib.h>
#include <wlib/sanity.h>
#include <wlib/build.h>
#include <wlib/icons.h>
#include <wlib/about.h>
#include <mine/mgv.h>
#include <mine/help.h>
static String cpright =
"MGv %s\n"
"A Motif user interface for ghostscript.\n"
"Copyright (C) 1996-2001 Eric A. Howe, Matthew D. Francey";
static String authors =
"Authors:\n"
"Eric A. Howe ([email protected]), http://www.trends.net/~mu)\n"
"Matthew D. Francey\n"
"\n"
"Based on work by:\n"
"Tim Theisen ([email protected]) (Ghostview 1.5)\n"
"and\n"
"Johannes Plass ([email protected])\n"
"(Ghostview-VMS 2.3)";
static String gpl[] = {
"This program is free software; you can redistribute it and/or\n",
"modify it under the terms of the GNU General Public License as\n",
"published by the Free Software Foundation; either version 2 of the\n",
"License, or (at your option) any later version.\n",
"\n",
"This program is distributed in the hope that it will be useful\n",
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n",
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n",
"GNU General Public License for more details.\n",
"\n",
"You should have received a copy of the GNU General Public License\n",
"along with this program; if not, write to the Free Software\n",
"Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n",
NULL
};
/*
* help->about
*/
void
mgv_help_about(Widget w, XtPointer closure, XtPointer call)
{
MGV *m = (MGV *)closure;
char buf[256];
USEUP(w); USEUP(call);
wl_assert(MgvOK(m));
if(m->about == NULL) {
sprintf(buf, cpright, bld_verstring);
m->about = wl_about(m->main, buf, authors, gpl, wl_icon, NULL);
}
wl_dlg_popup(m->about);
}