comparison src/EmacsManager.c @ 4522:fc7067b7f407

Backout last patch; forgot to specify file.
author Stephen J. Turnbull <stephen@xemacs.org>
date Wed, 29 Oct 2008 03:37:16 +0900
parents 383ab474a241
children 726060ee587c
comparison
equal deleted inserted replaced
4521:383ab474a241 4522:fc7067b7f407
30 #ifdef LWLIB_MENUBARS_MOTIF 30 #ifdef LWLIB_MENUBARS_MOTIF
31 #include "xmotif.h" 31 #include "xmotif.h"
32 #include <Xm/RowColumn.h> 32 #include <Xm/RowColumn.h>
33 #endif /* LWLIB_MENUBARS_MOTIF */ 33 #endif /* LWLIB_MENUBARS_MOTIF */
34 #include "compiler.h" 34 #include "compiler.h"
35 #include "../lwlib/xt-wrappers.h"
36 35
37 /* For I, Emacs, am a kind god. Unlike the goddess Athena and the 36 /* For I, Emacs, am a kind god. Unlike the goddess Athena and the
38 Titan Motif, I require no ritual sacrifices to placate the lesser 37 Titan Motif, I require no ritual sacrifices to placate the lesser
39 daemons of geometry management. */ 38 daemons of geometry management. */
40 39
41 static XtResource resources[] = { 40 static XtResource resources[] = {
42 #define offset(field) XtOffset(EmacsManagerWidget, emacs_manager.field) 41 #define offset(field) XtOffset(EmacsManagerWidget, emacs_manager.field)
43 #define res(name,_class,intrepr,size,member,extrepr,value) \ 42 { XtNresizeCallback, XtCCallback,
44 Xt_RESOURCE (name, _class, intrepr, size, offset(member), extrepr, value) 43 XtRCallback, sizeof (XtCallbackList),
45 res (XtNresizeCallback, XtCCallback, XtRCallback, XtCallbackList, 44 offset(resize_callback), XtRImmediate, (XtPointer) 0 },
46 resize_callback, XtRImmediate, 0), 45 { XtNqueryGeometryCallback, XtCCallback,
47 res (XtNqueryGeometryCallback, XtCCallback, XtRCallback, XtCallbackList, 46 XtRCallback, sizeof (XtCallbackList),
48 query_geometry_callback, XtRImmediate, 0), 47 offset(query_geometry_callback), XtRImmediate, (XtPointer) 0 },
49 res (XtNuserData, XtCUserData, XtRPointer, XtPointer, 48 { XtNuserData, XtCUserData,
50 user_data, XtRImmediate, 0), 49 XtRPointer, sizeof (XtPointer),
50 offset(user_data), XtRImmediate, (XtPointer) 0 },
51 }; 51 };
52 52
53 /**************************************************************** 53 /****************************************************************
54 * 54 *
55 * Full class record constant 55 * Full class record constant
73 #ifdef LWLIB_USES_MOTIF 73 #ifdef LWLIB_USES_MOTIF
74 /* superclass */ (WidgetClass) &xmManagerClassRec, 74 /* superclass */ (WidgetClass) &xmManagerClassRec,
75 #else 75 #else
76 /* superclass */ (WidgetClass) &compositeClassRec, 76 /* superclass */ (WidgetClass) &compositeClassRec,
77 #endif 77 #endif
78 /* class_name */ (String) "EmacsManager", 78 /* class_name */ "EmacsManager",
79 /* widget_size */ sizeof (EmacsManagerRec), 79 /* widget_size */ sizeof (EmacsManagerRec),
80 /* class_initialize */ ClassInitialize, 80 /* class_initialize */ ClassInitialize,
81 /* class_part_init */ NULL, 81 /* class_part_init */ NULL,
82 /* class_inited */ FALSE, 82 /* class_inited */ FALSE,
83 /* initialize */ NULL, 83 /* initialize */ NULL,