1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-13 04:15:50 +01:00

- put back wmksize(), wmkrange() and wmkpoint() as functions instead of macros

- fixed some compilation warnings with -Wall
- some code cleanup
This commit is contained in:
dan
2001-04-19 01:04:48 +00:00
parent 03824d5324
commit 648d75c299
21 changed files with 91 additions and 50 deletions

View File

@@ -26,7 +26,7 @@ int numberOfRows(WMTableViewDelegate *self, WMTableView *table)
void *valueForCell(WMTableViewDelegate *self, WMTableColumn *column, int row)
{
WMTableView *table = (WMTableView*)WMGetTableColumnTableView(column);
/*WMTableView *table = (WMTableView*)WMGetTableColumnTableView(column);*/
int i;
if (col1[0] == 0) {
for (i = 0; i < 20; i++) {
@@ -90,7 +90,7 @@ main(int argc, char **argv)
table = WMCreateTableView(win);
WMResizeWidget(table, 400, 200);
WMSetTableViewBackgroundColor(table, WMWhiteColor(scr));
// WMSetTableViewGridColor(table, WMGrayColor(scr));
/*WMSetTableViewGridColor(table, WMGrayColor(scr));*/
WMSetTableViewHeaderHeight(table, 20);
WMSetTableViewDelegate(table, &delegate);
WMSetTableViewAction(table, clickedTable, table);

View File

@@ -381,10 +381,7 @@ WMTableView *WMCreateTableView(WMWidget *parent)
void WMAddTableViewColumn(WMTableView *table, WMTableColumn *column)
{
int width;
int i;
WMScreen *scr = WMWidgetScreen(table);
int count;
column->table = table;
@@ -952,7 +949,7 @@ static void rearrangeHeader(WMTableView *table)
int width;
int count;
int i;
WMRect rect = WMGetScrollViewVisibleRect(table->scrollView);
/*WMRect rect = WMGetScrollViewVisibleRect(table->scrollView);*/
width = 0;