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

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.34 by pcg, Tue Feb 24 00:02:44 2004 UTC vs.
Revision 1.37 by pcg, Tue Feb 24 21:46:14 2004 UTC

1240 1240
1241#if defined(MENUBAR) && (MENUBAR_MAX > 1) 1241#if defined(MENUBAR) && (MENUBAR_MAX > 1)
1242 if (menuBar_height ()) 1242 if (menuBar_height ())
1243 { 1243 {
1244 menuBar.win = XCreateSimpleWindow (display->display, TermWin.parent[0], 1244 menuBar.win = XCreateSimpleWindow (display->display, TermWin.parent[0],
1245 window_vt_x, 0, 1245 window_vt_x, 0,
1246 TermWin_TotalWidth (), 1246 TermWin_TotalWidth (),
1247 menuBar_TotalHeight (), 1247 menuBar_TotalHeight (),
1248 0, 1248 0,
1249 PixColors[Color_fg], 1249 PixColors[Color_fg],
1250 PixColors[Color_scroll]); 1250 PixColors[Color_scroll]);
1251
1251#ifdef DEBUG_X 1252#ifdef DEBUG_X
1252 XStoreName (display->display, menuBar.win, "menubar"); 1253 XStoreName (display->display, menuBar.win, "menubar");
1253#endif 1254#endif
1255
1256 menuBar.drawable = new rxvt_drawable (display, menuBar.win);
1254 1257
1255 XDefineCursor (display->display, menuBar.win, 1258 XDefineCursor (display->display, menuBar.win,
1256 XCreateFontCursor (display->display, XC_left_ptr)); 1259 XCreateFontCursor (display->display, XC_left_ptr));
1257 1260
1258 XSelectInput (display->display, menuBar.win, 1261 XSelectInput (display->display, menuBar.win,
1284 gcvalue.graphics_exposures = 1; 1287 gcvalue.graphics_exposures = 1;
1285 TermWin.gc = XCreateGC (display->display, TermWin.vt, 1288 TermWin.gc = XCreateGC (display->display, TermWin.vt,
1286 GCForeground | GCBackground 1289 GCForeground | GCBackground
1287 | GCGraphicsExposures, &gcvalue); 1290 | GCGraphicsExposures, &gcvalue);
1288 1291
1292 TermWin.drawable = new rxvt_drawable (display, TermWin.vt);
1293
1289#if defined(MENUBAR) || defined(RXVT_SCROLLBAR) 1294#if defined(MENUBAR) || defined(RXVT_SCROLLBAR)
1290 gcvalue.foreground = PixColors[Color_topShadow]; 1295 gcvalue.foreground = PixColors[Color_topShadow];
1291 topShadowGC = XCreateGC (display->display, TermWin.vt, 1296 topShadowGC = XCreateGC (display->display, TermWin.vt, GCForeground, &gcvalue);
1292 GCForeground, &gcvalue);
1293 gcvalue.foreground = PixColors[Color_bottomShadow]; 1297 gcvalue.foreground = PixColors[Color_bottomShadow];
1294 botShadowGC = XCreateGC (display->display, TermWin.vt, 1298 botShadowGC = XCreateGC (display->display, TermWin.vt, GCForeground, &gcvalue);
1295 GCForeground, &gcvalue);
1296 gcvalue.foreground = PixColors[ (XDEPTH <= 2 ? Color_fg 1299 gcvalue.foreground = PixColors[ (XDEPTH <= 2 ? Color_fg : Color_scroll)];
1297 : Color_scroll)];
1298 scrollbarGC = XCreateGC (display->display, TermWin.vt, 1300 scrollbarGC = XCreateGC (display->display, TermWin.vt, GCForeground, &gcvalue);
1299 GCForeground, &gcvalue);
1300#endif 1301#endif
1301} 1302}
1302 1303
1303/*----------------------------------------------------------------------*/ 1304/*----------------------------------------------------------------------*/
1304/* 1305/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines