Mercurial > hg > xemacs-beta
comparison src/balloon-x.c @ 157:6b37e6ddd302 r20-3b5
Import from CVS: tag r20-3b5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:40:41 +0200 |
parents | 6608ceec7cf8 |
children | 15872534500d |
comparison
equal
deleted
inserted
replaced
156:60baf0b43294 | 157:6b37e6ddd302 |
---|---|
30 #include "balloon_help.h" | 30 #include "balloon_help.h" |
31 | 31 |
32 /* ### start of hack */ | 32 /* ### start of hack */ |
33 | 33 |
34 static unsigned long | 34 static unsigned long |
35 alloc_color (Display* dpy, const char* colorname, int light) | 35 alloc_color (Display* dpy, CONST char* colorname, int light) |
36 { | 36 { |
37 Colormap cmap = DefaultColormap (dpy, DefaultScreen(dpy)); | 37 Colormap cmap = DefaultColormap (dpy, DefaultScreen(dpy)); |
38 unsigned long pixel = 0; | 38 unsigned long pixel = 0; |
39 XColor color; | 39 XColor color; |
40 | 40 |
59 } | 59 } |
60 return pixel; | 60 return pixel; |
61 } | 61 } |
62 | 62 |
63 static XFontStruct * | 63 static XFontStruct * |
64 open_font (Display* dpy, const char* font_name) | 64 open_font (Display* dpy, CONST char* font_name) |
65 { | 65 { |
66 XFontStruct* fontStruct = NULL; | 66 XFontStruct* fontStruct = NULL; |
67 | 67 |
68 fontStruct = XLoadQueryFont (dpy, font_name ? font_name : "fixed"); | 68 fontStruct = XLoadQueryFont (dpy, font_name ? font_name : "fixed"); |
69 if (fontStruct == NULL) | 69 if (fontStruct == NULL) |