changeset 95711:1c2b64c79c32

Include w32term.h, move widget related defs there.
author Jason Rumney <jasonr@gnu.org>
date Mon, 09 Jun 2008 12:36:49 +0000
parents 33605d8c9e6d
children f8644ed7e357
files src/menu.c
diffstat 1 files changed, 1 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/src/menu.c	Mon Jun 09 12:36:01 2008 +0000
+++ b/src/menu.c	Mon Jun 09 12:36:49 2008 +0000
@@ -41,33 +41,7 @@
 #endif
 
 #ifdef HAVE_NTGUI
-/* Definitions copied from lwlib.h */
-typedef void * XtPointer;
-typedef char Boolean;
-enum button_type
-{
-  BUTTON_TYPE_NONE,
-  BUTTON_TYPE_TOGGLE,
-  BUTTON_TYPE_RADIO
-};
-
-/* This structure is based on the one in ../lwlib/lwlib.h  */
-typedef struct _widget_value
-{
-  Lisp_Object   lname;
-  char*		name;
-  char*		value;
-  Lisp_Object   lkey;
-  char*		key;
-  Lisp_Object	help;
-  Boolean	enabled;
-  Boolean	selected;
-  enum button_type button_type;
-  Boolean       title;
-  struct _widget_value*	contents;
-  XtPointer	call_data;
-  struct _widget_value*	next;
-} widget_value;
+#include "w32term.h"
 
 /* Local memory management */
 #define local_heap (GetProcessHeap ())