1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-10 18:45:47 +01:00

Remake of the WMList code to allow multiple selection. Not complete yet.

It will not even compile. I Will finish it later today.
This commit is contained in:
dan
2000-09-28 03:09:57 +00:00
parent df357ae1de
commit 6973f07f30
6 changed files with 149 additions and 87 deletions

View File

@@ -84,8 +84,8 @@ static void loadColumn(WMBrowser *bPtr, int column);
static void removeColumn(WMBrowser *bPtr, int column);
static char*
createTruncatedString(WMFont *font, char *text, int *textLen, int width);
static char* createTruncatedString(WMFont *font, char *text, int *textLen,
int width);
static void willResizeBrowser(W_ViewDelegate*, WMView*,
unsigned int*, unsigned int*);
@@ -1030,7 +1030,7 @@ static void
listSelectionObserver(void *observerData, WMNotification *notification)
{
WMBrowser *bPtr = (WMBrowser*)observerData;
int column, item = (int)WMGetNotificationClientData(notification);
int column;
WMList *lPtr = (WMList*)WMGetNotificationObject(notification);
for (column = 0; column < bPtr->usedColumnCount; column++)
@@ -1043,7 +1043,7 @@ listSelectionObserver(void *observerData, WMNotification *notification)
return;
}
if (item < 0)
if (WMGetArrayItemCount(WMGetListSelectedItems(lPtr)) == 0)
column--;
bPtr->selectedColumn = column;