diff -r e79a60b3a7cb -r 7c3ff86ee9d4 ui/motif/stock.c --- a/ui/motif/stock.c Sun Apr 16 10:20:21 2023 +0200 +++ b/ui/motif/stock.c Tue May 23 11:11:28 2023 +0200 @@ -31,12 +31,12 @@ #include "stock.h" #include "../ui/properties.h" -#include +#include -static UcxMap *stock_items; +static CxMap *stock_items; void ui_stock_init() { - stock_items = ucx_map_new(64); + stock_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 64); ui_add_stock_item(UI_STOCK_NEW, "New", "CtrlN", "Ctrl+N", NULL); ui_add_stock_item(UI_STOCK_OPEN, "Open", "CtrlO", "Ctrl+O", NULL); @@ -61,11 +61,11 @@ i->accelerator_label = accelerator_label; // TODO: icon - ucx_map_cstr_put(stock_items, id, i); + cxMapPut(stock_items, id, i); } UiStockItem* ui_get_stock_item(char *id) { - UiStockItem *item = ucx_map_cstr_get(stock_items, id); + UiStockItem *item = cxMapGet(stock_items, id); if(item) { char *label = uistr_n(id); if(label) {