1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-06 08:15:56 +01:00

- made "Keep on Top" in the dock/clip menu a checked menu entry. It's _much_

easier to work with it this way.
- better naming of options in the clip options menu.
- better detection of whether to use EXEC or SHEXEC in WPrefs menu editor.
This commit is contained in:
dan
2001-04-10 22:00:41 +00:00
parent 9035122c5f
commit e0235bb61b
5 changed files with 30 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
/*
* WINGs WMHost function library
*
* Copyright (c) 1999-2000 Dan Pascu
* Copyright (c) 1999-2001 Dan Pascu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -248,11 +248,18 @@ WMFlushHostCache()
}
static int
matchAddress(void *item, void *cdata)
{
return (strcmp((char*) item, (char*) cdata)==0);
}
Bool
WMIsHostEqualToHost(WMHost* hPtr, WMHost* aPtr)
{
int i, j;
char *adr1, *adr2;
char *adr;
int i;
wassertrv(hPtr!=NULL && aPtr!=NULL, False);
@@ -260,12 +267,9 @@ WMIsHostEqualToHost(WMHost* hPtr, WMHost* aPtr)
return True;
for (i=0; i<WMGetArrayItemCount(aPtr->addresses); i++) {
adr1 = WMGetFromArray(aPtr->addresses, i);
// use WMFindInArray here --Dan
for (j=0; j<WMGetArrayItemCount(hPtr->addresses); j++) {
adr2 = WMGetFromArray(hPtr->addresses, j);
if (strcmp(adr1, adr2)==0)
return True;
adr = WMGetFromArray(aPtr->addresses, i);
if (WMFindInArray(hPtr->addresses, matchAddress, adr) != WANotFound) {
return True;
}
}