mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-09 11:12:29 +02:00
Window Maker 0.20.3
This commit is contained in:
1 parent
9007a6575d
commit
345d980be3
25 files changed
+889
-142
No files matched your search
@@ -134,6 +134,30 @@ WMCreateBrowser(WMWidget *parent)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WMSetBrowserMaxVisibleColumns(WMBrowser *bPtr, int columns)
|
||||
{
|
||||
if (columns > bPtr->maxVisibleColumns) {
|
||||
|
||||
if (columns > bPtr->columnCount) {
|
||||
int i = columns - bPtr->columnCount;
|
||||
|
||||
while (i--) {
|
||||
WMAddBrowserColumn(bPtr);
|
||||
}
|
||||
}
|
||||
|
||||
resizeBrowser(bPtr, bPtr->view->size.width, bPtr->view->size.height);
|
||||
|
||||
} else if (columns < bPtr->maxVisibleColumns) {
|
||||
|
||||
resizeBrowser(bPtr, bPtr->view->size.width, bPtr->view->size.height);
|
||||
}
|
||||
|
||||
bPtr->maxVisibleColumns = columns;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
WMGetBrowserNumberOfColumns(WMBrowser *bPtr)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user