--- a/ui/gtk/image.c Sat Apr 15 21:06:45 2023 +0200 +++ b/ui/gtk/image.c Mon May 22 16:17:26 2023 +0200 @@ -29,18 +29,18 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <ucx/map.h> +#include <cx/map.h> #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; }