comparison src/balloon-x.c @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
27 #include "device.h" 27 #include "device.h"
28 #include "console-x.h" 28 #include "console-x.h"
29 29
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 = DEVICE_X_COLORMAP (XDEVICE(Vdefault_x_device)); 37 Colormap cmap = DEVICE_X_COLORMAP (XDEVICE(Vdefault_x_device));
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)
97 balloon_help_create (dpy, bg, fg, shine, shadow, font); 97 balloon_help_create (dpy, bg, fg, shine, shadow, font);
98 init_p = 1; 98 init_p = 1;
99 } 99 }
100 } 100 }
101 101
102 /* #### end of hack */ 102 /* ### end of hack */
103 103
104 DEFUN ("show-balloon-help", Fshow_balloon_help, 1, 1, 0, /* 104 DEFUN ("show-balloon-help", Fshow_balloon_help, 1, 1, 0, /*
105 Show balloon help. 105 Show balloon help.
106 */ 106 */
107 (string)) 107 (string))