Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/EmacsFrame.c Mon Aug 13 08:45:53 2007 +0200 +++ b/src/EmacsFrame.c Mon Aug 13 08:46:35 2007 +0200 @@ -102,13 +102,13 @@ {XtNrightToolBarWidth, XtCRightToolBarWidth, XtRInt, sizeof (int), offset (right_toolbar_width), XtRImmediate, (XtPointer)-1}, {XtNtopToolBarShadowColor, XtCTopToolBarShadowColor, XtRPixel, sizeof(Pixel), - offset(top_toolbar_shadow_pixel), XtRString, "Gray90"}, + offset(top_toolbar_shadow_pixel), XtRString, (String) "Gray90"}, {XtNbottomToolBarShadowColor, XtCBottomToolBarShadowColor, XtRPixel, sizeof(Pixel), offset(bottom_toolbar_shadow_pixel), XtRString, - "Gray40"}, + (String) "Gray40"}, {XtNbackgroundToolBarColor, XtCBackgroundToolBarColor, XtRPixel, sizeof(Pixel), offset(background_toolbar_pixel), XtRString, - "Gray75"}, + (String) "Gray75"}, {XtNtopToolBarShadowPixmap, XtCTopToolBarShadowPixmap, XtRPixmap, sizeof (Pixmap), offset(top_toolbar_shadow_pixmap), XtRImmediate, (XtPointer)None}, @@ -130,9 +130,9 @@ offset(font), XtRImmediate, (XtPointer)0 }, {XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel), - offset(foreground_pixel), XtRString, "XtDefaultForeground"}, + offset(foreground_pixel), XtRString, (String) "XtDefaultForeground"}, {XtNcursorColor, XtCForeground, XtRPixel, sizeof(Pixel), - offset(cursor_color), XtRString, "XtDefaultForeground"}, + offset(cursor_color), XtRString, (String) "XtDefaultForeground"}, {XtNbarCursor, XtCBarCursor, XtRBoolean, sizeof (Boolean), offset (bar_cursor), XtRImmediate, (XtPointer)0}, {XtNvisualBell, XtCVisualBell, XtRBoolean, sizeof (Boolean), @@ -155,7 +155,7 @@ static XtActionsRec emacsFrameActionsTable [] = { - {"mapping", (XtActionProc) emacs_Xt_mapping_action}, + {(String) "mapping", (XtActionProc) emacs_Xt_mapping_action}, }; static char @@ -174,7 +174,7 @@ #else /* superclass */ &widgetClassRec, #endif - /* class_name */ "EmacsFrame", + /* class_name */ (String) "EmacsFrame", /* widget_size */ sizeof(EmacsFrameRec), /* class_initialize */ EmacsFrameClassInitialize, /* class_part_initialize */ 0, @@ -265,22 +265,23 @@ struct frame *f = ew->emacs_frame.frame; Widget shell_widget = FRAME_X_SHELL_WIDGET (f); - attrs->event_mask = (ExposureMask | - StructureNotifyMask | - VisibilityChangeMask | - PropertyChangeMask | - StructureNotifyMask | - /*SubstructureNotifyMask |*/ - /*SubstructureRedirectMask |*/ /* Only for WMs! */ - KeyPressMask | - KeyReleaseMask | - ButtonPressMask | - ButtonReleaseMask | - FocusChangeMask | - PointerMotionHintMask | - PointerMotionMask | - LeaveWindowMask | - EnterWindowMask); + attrs->event_mask = + ExposureMask | + VisibilityChangeMask | + PropertyChangeMask | + StructureNotifyMask | + SubstructureNotifyMask | + /*SubstructureRedirectMask |*/ /* Only for WMs! */ + KeyPressMask | + KeyReleaseMask | + ButtonPressMask | + ButtonReleaseMask | + FocusChangeMask | + PointerMotionHintMask | + PointerMotionMask | + LeaveWindowMask | + EnterWindowMask; + #ifdef I18N4 /* Make sure that events wanted by the input method are selected. */