diff options
| author | Jason Rumney | 2008-06-09 12:36:49 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-06-09 12:36:49 +0000 |
| commit | a8495745c0f10e685797848adf87a46363b90c80 (patch) | |
| tree | 17971a2ccc1e02adbb0c2bbf1dd4b7a6be85dfae /src | |
| parent | 4d65e18f1d6551256509fbe32c9ade1f045ee67a (diff) | |
| download | emacs-a8495745c0f10e685797848adf87a46363b90c80.tar.gz emacs-a8495745c0f10e685797848adf87a46363b90c80.zip | |
Include w32term.h, move widget related
defs there.
Diffstat (limited to 'src')
| -rw-r--r-- | src/menu.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/src/menu.c b/src/menu.c index 2cf94924ffd..74f3add87a6 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -41,33 +41,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | #ifdef HAVE_NTGUI | 43 | #ifdef HAVE_NTGUI |
| 44 | /* Definitions copied from lwlib.h */ | 44 | #include "w32term.h" |
| 45 | typedef void * XtPointer; | ||
| 46 | typedef char Boolean; | ||
| 47 | enum button_type | ||
| 48 | { | ||
| 49 | BUTTON_TYPE_NONE, | ||
| 50 | BUTTON_TYPE_TOGGLE, | ||
| 51 | BUTTON_TYPE_RADIO | ||
| 52 | }; | ||
| 53 | |||
| 54 | /* This structure is based on the one in ../lwlib/lwlib.h */ | ||
| 55 | typedef struct _widget_value | ||
| 56 | { | ||
| 57 | Lisp_Object lname; | ||
| 58 | char* name; | ||
| 59 | char* value; | ||
| 60 | Lisp_Object lkey; | ||
| 61 | char* key; | ||
| 62 | Lisp_Object help; | ||
| 63 | Boolean enabled; | ||
| 64 | Boolean selected; | ||
| 65 | enum button_type button_type; | ||
| 66 | Boolean title; | ||
| 67 | struct _widget_value* contents; | ||
| 68 | XtPointer call_data; | ||
| 69 | struct _widget_value* next; | ||
| 70 | } widget_value; | ||
| 71 | 45 | ||
| 72 | /* Local memory management */ | 46 | /* Local memory management */ |
| 73 | #define local_heap (GetProcessHeap ()) | 47 | #define local_heap (GetProcessHeap ()) |