Eliminate obsolete NoWin.

SVN revision: 34369
This commit is contained in:
Kim Woelders 2008-04-25 19:12:12 +00:00
parent 00fb2f0048
commit 9c201b6f9d
6 changed files with 7 additions and 9 deletions

View File

@ -43,7 +43,7 @@ static void CommsSend(Client * c, const char *s);
static Ecore_List *client_list = NULL;
static Win comms_win = NoWin;
static Win comms_win = NULL;
static Client *
ClientCreate(Window xwin)

View File

@ -382,7 +382,7 @@ DeskCreate(int desk, int configure)
dsk->num = desk;
desks.order[desk] = desk;
win = (desk == 0) ? VROOT : NoWin;
win = (desk == 0) ? VROOT : NULL;
Esnprintf(buf, sizeof(buf), "Desk-%d", desk);
EoSetNoRedirect(dsk, 1);

View File

@ -54,7 +54,7 @@ typedef struct {
#define fx_ripple_waterh 64
static Pixmap fx_ripple_above = None;
static Win fx_ripple_win = NoWin;
static Win fx_ripple_win = NULL;
static int fx_ripple_count = 0;
static void
@ -448,7 +448,7 @@ FX_Raindrops_Pause(void)
#define FX_WAVE_GRABH (FX_WAVE_WATERH + FX_WAVE_DEPTH)
#define FX_WAVE_CROSSPERIOD 0.42
static Pixmap fx_wave_above = None;
static Win fx_wave_win = NoWin;
static Win fx_wave_win = NULL;
static int fx_wave_count = 0;
static void

View File

@ -1124,7 +1124,7 @@ ITApply(Win win, ImageClass * ic, ImageState * is,
{
int w, h;
if (win == NoWin || !ic)
if (win == NULL || !ic)
return;
w = WinGetW(win);

View File

@ -119,7 +119,7 @@ SystrayObjManage(Container * ct, Window xwin)
Eprintf("SystrayObjManage %#lx\n", xwin);
#endif
win = ERegisterWindow(xwin, NULL);
if (win == NoWin)
if (win == NULL)
return win;
ESelectInput(win, StructureNotifyMask | PropertyChangeMask);
@ -184,7 +184,7 @@ SystrayObjAdd(Container * ct, Window xwin)
goto bail_out;
win = SystrayObjManage(ct, xwin);
if (win == NoWin)
if (win == NULL)
goto bail_out;
swin->win = win;

View File

@ -83,8 +83,6 @@ Time EGetTimestamp(void);
typedef void (EventCallbackFunc) (Win win, XEvent * ev, void *prm);
#define NoWin ((Win)0)
#define EXPOSE_WIN 1
#if EXPOSE_WIN || DECLARE_WIN
typedef struct {