Bug 87847 - RFE: Create a 'checkbox' cell type

This commit is contained in:
John Ralls 2021-09-24 16:23:43 -07:00
parent 3d9faf70d8
commit e123d1bec5

View File

@ -111,8 +111,14 @@ gnc_checkbox_cell_get_flag (CheckboxCell *cell)
return cell->flag;
}
#define UNICODE_CHECKMARK "\xe2\x9c\x93" // U+2716
const char *
gnc_checkbox_cell_get_string (gboolean flag)
{
return (flag ? "X" : " ");
#ifndef MAC_INTEGRATION
const char* checked = UNICODE_CHECKMARK;
#else
const char* checked = "X";
#endif
return (flag ? checked : " ");
}