static void pushButton(WMWidget *w, void *data) { _Panel *panel = (_Panel*)data; int i; /* icon paths */ if (w == panel->icorB) { i = WMGetListSelectedItemRow(panel->icoL); if (i>=0) WMRemoveListItem(panel->icoL, i); } /* pixmap paths */ if (w == panel->pixrB) { i = WMGetListSelectedItemRow(panel->pixL); if (i>=0) WMRemoveListItem(panel->pixL, i); } }
void WMRemoveBrowserItem(WMBrowser * bPtr, int column, int row) { WMList *list; if (column < 0 || column >= bPtr->usedColumnCount) return; list = WMGetBrowserListInColumn(bPtr, column); if (row < 0 || row >= WMGetListNumberOfRows(list)) return; removeColumn(bPtr, column + 1); if (bPtr->usedColumnCount < bPtr->maxVisibleColumns) scrollToColumn(bPtr, 0, True); else scrollToColumn(bPtr, bPtr->usedColumnCount - bPtr->maxVisibleColumns, True); WMRemoveListItem(list, row); }