fix ui_image_load_* functions would not set the type to UI_IMAGE_OBJECT_TYPE in case UiGeneric is not bound to an widget

Sun, 20 Apr 2025 10:56:50 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 20 Apr 2025 10:56:50 +0200
changeset 578
950d2e38957b
parent 577
c2e854820922
child 579
810b848e2e4f

fix ui_image_load_* functions would not set the type to UI_IMAGE_OBJECT_TYPE in case UiGeneric is not bound to an widget

ui/gtk/image.c file | annotate | diff | comparison | revisions
--- a/ui/gtk/image.c	Sat Apr 19 20:02:23 2025 +0200
+++ b/ui/gtk/image.c	Sun Apr 20 10:56:50 2025 +0200
@@ -336,6 +336,7 @@
         g_object_unref(pixbuf);
     } else {
         obj->value = pixbuf;
+        obj->type = UI_IMAGE_OBJECT_TYPE;
     }
           
     return 0;
@@ -356,6 +357,7 @@
         g_object_unref(pixbuf);
     } else {
         obj->value = pixbuf;
+        obj->type = UI_IMAGE_OBJECT_TYPE;
     }
           
     return 0;

mercurial