Mercurial > hg > xemacs-beta
comparison lwlib/xlwtabs.c @ 4769:5460287a3327
Remove support for pre-X11R5 systems, including systems without Xmu. See
<870180fe0912091102j6fde7336hdc187608be0ef97@mail.gmail.com> in xemacs-patches.
author | Jerry James <james@xemacs.org> |
---|---|
date | Thu, 10 Dec 2009 12:42:09 -0700 |
parents | 726060ee587c |
children | a6c778975d7d |
comparison
equal
deleted
inserted
replaced
4768:0f5bee973a7b | 4769:5460287a3327 |
---|---|
69 #include <stdio.h> | 69 #include <stdio.h> |
70 | 70 |
71 #include <X11/Xlib.h> | 71 #include <X11/Xlib.h> |
72 #include <X11/IntrinsicP.h> | 72 #include <X11/IntrinsicP.h> |
73 #include <X11/StringDefs.h> | 73 #include <X11/StringDefs.h> |
74 #include <X11/Xmu/Drawing.h> | |
75 #include <X11/Xmu/Misc.h> | |
74 | 76 |
75 /* #### This may be risky, lwlib-internal.h redefines abort() */ | 77 /* #### This may be risky, lwlib-internal.h redefines abort() */ |
76 #include "lwlib-fonts.h" | 78 #include "lwlib-fonts.h" |
77 #include "lwlib-colors.h" | 79 #include "lwlib-colors.h" |
78 #include "lwlib-internal.h" | 80 #include "lwlib-internal.h" |
79 #include "../src/xmu.h" | |
80 #include "xlwtabsP.h" | 81 #include "xlwtabsP.h" |
81 #include "xlwgcs.h" | 82 #include "xlwgcs.h" |
82 | 83 |
83 #define XFT_USE_HEIGHT_NOT_ASCENT_DESCENT 0 | 84 #define XFT_USE_HEIGHT_NOT_ASCENT_DESCENT 0 |
84 | 85 |
1568 XtReleaseGC(w, tw->tabs.foregroundGC) ; | 1569 XtReleaseGC(w, tw->tabs.foregroundGC) ; |
1569 XtReleaseGC(w, tw->tabs.greyGC) ; | 1570 XtReleaseGC(w, tw->tabs.greyGC) ; |
1570 XtReleaseGC(w, tw->tabs.backgroundGC) ; | 1571 XtReleaseGC(w, tw->tabs.backgroundGC) ; |
1571 XtReleaseGC(w, tw->tabs.topGC) ; | 1572 XtReleaseGC(w, tw->tabs.topGC) ; |
1572 XtReleaseGC(w, tw->tabs.botGC) ; | 1573 XtReleaseGC(w, tw->tabs.botGC) ; |
1573 #ifdef HAVE_XMU | |
1574 XmuReleaseStippledPixmap(XtScreen(w), tw->tabs.grey50) ; | 1574 XmuReleaseStippledPixmap(XtScreen(w), tw->tabs.grey50) ; |
1575 #endif | |
1576 } | 1575 } |
1577 | 1576 |
1578 | 1577 |
1579 | 1578 |
1580 | 1579 |
2479 #ifdef USE_XFT_TABS | 2478 #ifdef USE_XFT_TABS |
2480 None; | 2479 None; |
2481 #else | 2480 #else |
2482 tw->tabs.font->fid; | 2481 tw->tabs.font->fid; |
2483 #endif | 2482 #endif |
2484 #ifdef HAVE_XMU | |
2485 if (tw->tabs.be_nice_to_cmap || w->core.depth == 1) | 2483 if (tw->tabs.be_nice_to_cmap || w->core.depth == 1) |
2486 { | 2484 { |
2487 values.fill_style = FillStippled; | 2485 values.fill_style = FillStippled; |
2488 tw->tabs.grey50 = | 2486 tw->tabs.grey50 = |
2489 values.stipple = XmuCreateStippledPixmap(XtScreen(w), 1L, 0L, 1); | 2487 values.stipple = XmuCreateStippledPixmap(XtScreen(w), 1L, 0L, 1); |
2500 #endif | 2498 #endif |
2501 GCSubwindowMode|GCGraphicsExposures|GCDashOffset| | 2499 GCSubwindowMode|GCGraphicsExposures|GCDashOffset| |
2502 GCDashList|GCArcMode); | 2500 GCDashList|GCArcMode); |
2503 } | 2501 } |
2504 else | 2502 else |
2505 #endif | |
2506 { | 2503 { |
2507 tw->tabs.greyGC = | 2504 tw->tabs.greyGC = |
2508 XtAllocateGC(w, w->core.depth, | 2505 XtAllocateGC(w, w->core.depth, |
2509 #ifdef USE_XFT_TABS | 2506 #ifdef USE_XFT_TABS |
2510 0L, | 2507 0L, |