diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-18 02:58:30 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-18 02:58:30 -0400 |
| commit | a8f711dfad63c5b1949439ac33ab4a162ab90ded (patch) | |
| tree | 29253de6cdb543d15969cfd0ec1894b877310c98 /redo/table_windows.c | |
| parent | 58e95f239940c646dce75c2b978d077884b7d215 (diff) | |
Implemented Table.Selected()/Select() on GTK+, more TODOs, and a quick Windows fix.
Diffstat (limited to 'redo/table_windows.c')
| -rw-r--r-- | redo/table_windows.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redo/table_windows.c b/redo/table_windows.c index a34e47a..6f0faae 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -145,6 +145,8 @@ void tableSelectItem(HWND hwnd, intptr_t index) if (SendMessageW(hwnd, LVM_SETITEMSTATE, (WPARAM) current, (LPARAM) (&item)) == FALSE) xpanic("error deselecting current Table item", GetLastError()); } + if (index == -1) // select nothing + return; ZeroMemory(&item, sizeof (LVITEMW)); item.mask = LVIF_STATE; item.state = LVIS_FOCUSED | LVIS_SELECTED; |
