Mercurial > hg > xemacs-beta
comparison src/EmacsFrameP.h @ 1455:449cf6dc2025
[xemacs-hg @ 2003-05-04 02:34:34 by youngs]
2003-04-05 Martin Buchholz <martin@xemacs.org>
* EmacsFrameP.h (EmacsFramePart):
Kludge to allow compiling with Motif1, but linking with Motif2.
author | youngs |
---|---|
date | Sun, 04 May 2003 02:34:35 +0000 |
parents | a07667553efc |
children | 374186f156d5 |
comparison
equal
deleted
inserted
replaced
1454:38d0f093d818 | 1455:449cf6dc2025 |
---|---|
30 #include "xmprimitivep.h" | 30 #include "xmprimitivep.h" |
31 #endif | 31 #endif |
32 #include "EmacsFrame.h" | 32 #include "EmacsFrame.h" |
33 | 33 |
34 typedef struct { | 34 typedef struct { |
35 | |
36 #ifdef LWLIB_USES_MOTIF | |
37 #if XmVERSION < 2 | |
38 /* It's easy to erroneously compile with Motif 1 headers, but link | |
39 with Motif 2 libraries. | |
40 | |
41 For example, AIX stupidly provides Motif headers in | |
42 /usr/dt/include, but fails to provide the corresponding libraries | |
43 in /usr/dt/lib. | |
44 | |
45 We actually try to survive such a version mismatch, since Motif 2 | |
46 is _almost_ binary compatible with Motif 1. Motif 2's | |
47 XmPrimitivePart has some trailing data members which overlay the | |
48 start of this struct. We create dummy members to make space for | |
49 XmPrimitivePart's added members. These must, of course, be at | |
50 the beginning of this struct. | |
51 | |
52 Delete this kludge when no one has Motif1 on their system anymore, | |
53 perhaps in 2010. */ | |
54 XtCallbackList Motif2_dummy_convert_callback; | |
55 XtCallbackList Motif2_dummy_popup_handler_callback; | |
56 long Motif2_dummy_layout_direction; | |
57 #endif | |
58 #endif | |
59 | |
35 struct frame* frame; /* the *emacs* frame object */ | 60 struct frame* frame; /* the *emacs* frame object */ |
36 | 61 |
37 /* Resources that can't be done from lisp. | 62 /* Resources that can't be done from lisp. |
38 */ | 63 */ |
39 char* geometry; /* geometry spec of this frame */ | 64 char* geometry; /* geometry spec of this frame */ |