ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/menubar.C
(Generate patch)

Comparing rxvt-unicode/src/menubar.C (file contents):
Revision 1.16 by pcg, Thu Apr 8 20:31:45 2004 UTC vs.
Revision 1.18 by root, Sun Aug 15 00:37:04 2004 UTC

29 29
30#include "rxvt.h" /* NECESSARY */ 30#include "rxvt.h" /* NECESSARY */
31#ifdef MENUBAR 31#ifdef MENUBAR
32#include "version.h" 32#include "version.h"
33#include "menubar.h" 33#include "menubar.h"
34#include "menubar.intpro" /* PROTOS for internal routines */
35 34
36#define Menu_PixelWidth(menu) \ 35#define Menu_PixelWidth(menu) \
37 (2 * SHADOW + Width2Pixel ((menu)->width + 3 * HSPACE)) 36 (2 * SHADOW + Width2Pixel ((menu)->width + 3 * HSPACE))
38 37
39static const struct 38static const struct
2035 if (menubarGC == None) 2034 if (menubarGC == None)
2036 { 2035 {
2037 /* Create the graphics context */ 2036 /* Create the graphics context */
2038 XGCValues gcvalue; 2037 XGCValues gcvalue;
2039 2038
2040 gcvalue.foreground = (XDEPTH <= 2 ? PixColors[Color_fg] 2039 gcvalue.foreground = (display->depth <= 2 ? PixColors[Color_fg]
2041 : PixColors[Color_Black]); 2040 : PixColors[Color_Black]);
2042 menubarGC = XCreateGC (display->display, menuBar.win, 2041 menubarGC = XCreateGC (display->display, menuBar.win,
2043 GCForeground, &gcvalue); 2042 GCForeground, &gcvalue);
2044 2043
2045 } 2044 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines