diff -r e79a60b3a7cb -r 7c3ff86ee9d4 ui/gtk/image.c --- a/ui/gtk/image.c Sun Apr 16 10:20:21 2023 +0200 +++ b/ui/gtk/image.c Tue May 23 11:11:28 2023 +0200 @@ -29,18 +29,18 @@ #include #include #include -#include +#include #include "toolkit.h" #include "image.h" #include "../common/properties.h" -static UcxMap *image_map; +static CxMap *image_map; static GtkIconTheme *icon_theme; void ui_image_init(void) { - image_map = ucx_map_new(8); + image_map = cxHashMapCreateSimple(CX_STORE_POINTERS); icon_theme = gtk_icon_theme_get_default(); } @@ -48,7 +48,7 @@ // **** deprecated functions **** GdkPixbuf* ui_get_image(const char *name) { - UiImage *img = ucx_map_cstr_get(image_map, name); + UiImage *img = cxMapGet(image_map, name); if(img) { return img->pixbuf; } else { @@ -125,7 +125,7 @@ UiImage *img = malloc(sizeof(UiImage)); img->pixbuf = pixbuf; if(name) { - ucx_map_cstr_put(image_map, name, img); + cxMapPut(image_map, name, img); } return img; }