mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 18:45:47 +01:00
Applied some patches from Balaton Zoltan <balaton@eik.bme.hu>
- small fix for compilation in a different directory than the source - fixed some warnings on 64bit platforms
This commit is contained in:
@@ -188,7 +188,7 @@ WMSetBrowserMaxVisibleColumns(WMBrowser *bPtr, int columns)
|
||||
int curMaxVisibleColumns;
|
||||
int newFirstVisibleColumn = 0;
|
||||
|
||||
assert ((int) bPtr);
|
||||
assert (bPtr != NULL);
|
||||
|
||||
columns = (columns < MIN_VISIBLE_COLUMNS) ? MIN_VISIBLE_COLUMNS : columns;
|
||||
columns = (columns > MAX_VISIBLE_COLUMNS) ? MAX_VISIBLE_COLUMNS : columns;
|
||||
@@ -324,7 +324,7 @@ removeColumn(WMBrowser *bPtr, int column)
|
||||
WMList **clist;
|
||||
char **tlist;
|
||||
|
||||
assert ((int) bPtr);
|
||||
assert (bPtr != NULL);
|
||||
|
||||
column = (column < 0) ? 0 : column;
|
||||
if (column >= bPtr->columnCount) {
|
||||
|
||||
@@ -1969,7 +1969,7 @@ deleteTextInteractively(Text *tPtr, KeySym ksym)
|
||||
} else if(tb->used == 0) {
|
||||
tb->blank = 1;
|
||||
} else if(tb->graphic) {
|
||||
Bool hasNext = (Bool)(tb->next);
|
||||
Bool hasNext = (tb->next != NULL);
|
||||
|
||||
WMDestroyTextBlock(tPtr, WMRemoveTextBlock(tPtr));
|
||||
if(hasNext) {
|
||||
|
||||
Reference in New Issue
Block a user