Mercurial > hg > xemacs-beta
comparison src/EmacsFrame.c @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | 0293115a14e9 |
comparison
equal
deleted
inserted
replaced
1:c0c6a60d29db | 2:ac2d302a0011 |
---|---|
100 {XtNleftToolBarWidth, XtCLeftToolBarWidth, XtRInt, sizeof (int), | 100 {XtNleftToolBarWidth, XtCLeftToolBarWidth, XtRInt, sizeof (int), |
101 offset (left_toolbar_width), XtRImmediate, (XtPointer)-1}, | 101 offset (left_toolbar_width), XtRImmediate, (XtPointer)-1}, |
102 {XtNrightToolBarWidth, XtCRightToolBarWidth, XtRInt, sizeof (int), | 102 {XtNrightToolBarWidth, XtCRightToolBarWidth, XtRInt, sizeof (int), |
103 offset (right_toolbar_width), XtRImmediate, (XtPointer)-1}, | 103 offset (right_toolbar_width), XtRImmediate, (XtPointer)-1}, |
104 {XtNtopToolBarShadowColor, XtCTopToolBarShadowColor, XtRPixel, sizeof(Pixel), | 104 {XtNtopToolBarShadowColor, XtCTopToolBarShadowColor, XtRPixel, sizeof(Pixel), |
105 offset(top_toolbar_shadow_pixel), XtRString, "Gray90"}, | 105 offset(top_toolbar_shadow_pixel), XtRString, (String) "Gray90"}, |
106 {XtNbottomToolBarShadowColor, XtCBottomToolBarShadowColor, XtRPixel, | 106 {XtNbottomToolBarShadowColor, XtCBottomToolBarShadowColor, XtRPixel, |
107 sizeof(Pixel), offset(bottom_toolbar_shadow_pixel), XtRString, | 107 sizeof(Pixel), offset(bottom_toolbar_shadow_pixel), XtRString, |
108 "Gray40"}, | 108 (String) "Gray40"}, |
109 {XtNbackgroundToolBarColor, XtCBackgroundToolBarColor, XtRPixel, | 109 {XtNbackgroundToolBarColor, XtCBackgroundToolBarColor, XtRPixel, |
110 sizeof(Pixel), offset(background_toolbar_pixel), XtRString, | 110 sizeof(Pixel), offset(background_toolbar_pixel), XtRString, |
111 "Gray75"}, | 111 (String) "Gray75"}, |
112 {XtNtopToolBarShadowPixmap, XtCTopToolBarShadowPixmap, XtRPixmap, | 112 {XtNtopToolBarShadowPixmap, XtCTopToolBarShadowPixmap, XtRPixmap, |
113 sizeof (Pixmap), offset(top_toolbar_shadow_pixmap), XtRImmediate, | 113 sizeof (Pixmap), offset(top_toolbar_shadow_pixmap), XtRImmediate, |
114 (XtPointer)None}, | 114 (XtPointer)None}, |
115 {XtNbottomToolBarShadowPixmap, XtCBottomToolBarShadowPixmap, XtRPixmap, | 115 {XtNbottomToolBarShadowPixmap, XtCBottomToolBarShadowPixmap, XtRPixmap, |
116 sizeof (Pixmap), offset(bottom_toolbar_shadow_pixmap), XtRImmediate, | 116 sizeof (Pixmap), offset(bottom_toolbar_shadow_pixmap), XtRImmediate, |
128 XtNfont, XtCFont, XtRFontStruct, sizeof(XFontStruct *), | 128 XtNfont, XtCFont, XtRFontStruct, sizeof(XFontStruct *), |
129 #endif | 129 #endif |
130 offset(font), XtRImmediate, (XtPointer)0 | 130 offset(font), XtRImmediate, (XtPointer)0 |
131 }, | 131 }, |
132 {XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel), | 132 {XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel), |
133 offset(foreground_pixel), XtRString, "XtDefaultForeground"}, | 133 offset(foreground_pixel), XtRString, (String) "XtDefaultForeground"}, |
134 {XtNcursorColor, XtCForeground, XtRPixel, sizeof(Pixel), | 134 {XtNcursorColor, XtCForeground, XtRPixel, sizeof(Pixel), |
135 offset(cursor_color), XtRString, "XtDefaultForeground"}, | 135 offset(cursor_color), XtRString, (String) "XtDefaultForeground"}, |
136 {XtNbarCursor, XtCBarCursor, XtRBoolean, sizeof (Boolean), | 136 {XtNbarCursor, XtCBarCursor, XtRBoolean, sizeof (Boolean), |
137 offset (bar_cursor), XtRImmediate, (XtPointer)0}, | 137 offset (bar_cursor), XtRImmediate, (XtPointer)0}, |
138 {XtNvisualBell, XtCVisualBell, XtRBoolean, sizeof (Boolean), | 138 {XtNvisualBell, XtCVisualBell, XtRBoolean, sizeof (Boolean), |
139 offset (visual_bell), XtRImmediate, (XtPointer)0}, | 139 offset (visual_bell), XtRImmediate, (XtPointer)0}, |
140 {XtNbellVolume, XtCBellVolume, XtRInt, sizeof (int), | 140 {XtNbellVolume, XtCBellVolume, XtRInt, sizeof (int), |
153 Xt is stupid and dumb. | 153 Xt is stupid and dumb. |
154 Xt is stupid and dumb. */ | 154 Xt is stupid and dumb. */ |
155 | 155 |
156 static XtActionsRec | 156 static XtActionsRec |
157 emacsFrameActionsTable [] = { | 157 emacsFrameActionsTable [] = { |
158 {"mapping", (XtActionProc) emacs_Xt_mapping_action}, | 158 {(String) "mapping", (XtActionProc) emacs_Xt_mapping_action}, |
159 }; | 159 }; |
160 | 160 |
161 static char | 161 static char |
162 emacsFrameTranslations [] = "\ | 162 emacsFrameTranslations [] = "\ |
163 <Mapping>: mapping()\n\ | 163 <Mapping>: mapping()\n\ |
172 #ifdef LWLIB_USES_MOTIF | 172 #ifdef LWLIB_USES_MOTIF |
173 /* superclass */ (WidgetClass) &xmPrimitiveClassRec, | 173 /* superclass */ (WidgetClass) &xmPrimitiveClassRec, |
174 #else | 174 #else |
175 /* superclass */ &widgetClassRec, | 175 /* superclass */ &widgetClassRec, |
176 #endif | 176 #endif |
177 /* class_name */ "EmacsFrame", | 177 /* class_name */ (String) "EmacsFrame", |
178 /* widget_size */ sizeof(EmacsFrameRec), | 178 /* widget_size */ sizeof(EmacsFrameRec), |
179 /* class_initialize */ EmacsFrameClassInitialize, | 179 /* class_initialize */ EmacsFrameClassInitialize, |
180 /* class_part_initialize */ 0, | 180 /* class_part_initialize */ 0, |
181 /* class_inited */ FALSE, | 181 /* class_inited */ FALSE, |
182 /* initialize */ EmacsFrameInitialize, | 182 /* initialize */ EmacsFrameInitialize, |
263 { | 263 { |
264 EmacsFrame ew = (EmacsFrame) widget; | 264 EmacsFrame ew = (EmacsFrame) widget; |
265 struct frame *f = ew->emacs_frame.frame; | 265 struct frame *f = ew->emacs_frame.frame; |
266 Widget shell_widget = FRAME_X_SHELL_WIDGET (f); | 266 Widget shell_widget = FRAME_X_SHELL_WIDGET (f); |
267 | 267 |
268 attrs->event_mask = (ExposureMask | | 268 attrs->event_mask = |
269 StructureNotifyMask | | 269 ExposureMask | |
270 VisibilityChangeMask | | 270 VisibilityChangeMask | |
271 PropertyChangeMask | | 271 PropertyChangeMask | |
272 StructureNotifyMask | | 272 StructureNotifyMask | |
273 /*SubstructureNotifyMask |*/ | 273 SubstructureNotifyMask | |
274 /*SubstructureRedirectMask |*/ /* Only for WMs! */ | 274 /*SubstructureRedirectMask |*/ /* Only for WMs! */ |
275 KeyPressMask | | 275 KeyPressMask | |
276 KeyReleaseMask | | 276 KeyReleaseMask | |
277 ButtonPressMask | | 277 ButtonPressMask | |
278 ButtonReleaseMask | | 278 ButtonReleaseMask | |
279 FocusChangeMask | | 279 FocusChangeMask | |
280 PointerMotionHintMask | | 280 PointerMotionHintMask | |
281 PointerMotionMask | | 281 PointerMotionMask | |
282 LeaveWindowMask | | 282 LeaveWindowMask | |
283 EnterWindowMask); | 283 EnterWindowMask; |
284 | |
284 | 285 |
285 #ifdef I18N4 | 286 #ifdef I18N4 |
286 /* Make sure that events wanted by the input method are selected. */ | 287 /* Make sure that events wanted by the input method are selected. */ |
287 attrs->event_mask |= input_method_event_mask; | 288 attrs->event_mask |= input_method_event_mask; |
288 #endif | 289 #endif |