1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: menubar.c |
2 | * File: menubar.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> |
5 | * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> |
|
|
6 | * Copyright (c) 2004 Marc Lehmann <pcg@goof.com> |
6 | * |
7 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | * (at your option) any later version. |
… | |
… | |
2034 | if (menubarGC == None) |
2035 | if (menubarGC == None) |
2035 | { |
2036 | { |
2036 | /* Create the graphics context */ |
2037 | /* Create the graphics context */ |
2037 | XGCValues gcvalue; |
2038 | XGCValues gcvalue; |
2038 | |
2039 | |
2039 | gcvalue.foreground = (XDEPTH <= 2 ? PixColors[Color_fg] |
2040 | gcvalue.foreground = (display->depth <= 2 ? PixColors[Color_fg] |
2040 | : PixColors[Color_Black]); |
2041 | : PixColors[Color_Black]); |
2041 | menubarGC = XCreateGC (display->display, menuBar.win, |
2042 | menubarGC = XCreateGC (display->display, menuBar.win, |
2042 | GCForeground, &gcvalue); |
2043 | GCForeground, &gcvalue); |
2043 | |
2044 | |
2044 | } |
2045 | } |