ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/crossedit/Cnv/CnvMenu.c
Revision: 1.2
Committed: Sun Aug 13 17:16:01 2006 UTC (17 years, 10 months ago) by elmex
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Made server compile with C++.
Removed cfanim plugin and crossedit.
C++ here we come.

File Contents

# Content
1 #include <Cnv.h>
2
3 Widget CnvMenu(String name, Widget par,CnvMenuRec rec[], XtPointer p)
4 {
5 Widget shell, w;
6 int i;
7
8 shell = XtVaCreatePopupShell (name, simpleMenuWidgetClass, par,
9 NULL);
10
11 for (i = 0; *rec[i].label; i++) {
12 if (strncmp (rec[i].label, "---", 3)) {
13 w = XtVaCreateManagedWidget
14 (rec[i].label, smeBSBObjectClass, shell, NULL);
15 XtAddCallback (w, XtNcallback, rec[i].func, p);
16 XtInstallAccelerators(par, w);
17 } else
18 XtVaCreateManagedWidget ("line", smeLineObjectClass, shell, NULL);
19 }
20
21
22 return shell;
23 }
24
25 /*** end of CnvMenu.c ***/