GValue cannot be used with dynamic types
Submitted by Daniel Elstner
Assigned to Tim Janik
Link to original bug (#409043)
Description
It is not possible to use GValue with types that are registered dynamically via the GTypePlugin interface. g_value_init() fails with the following messages:
(test-value-plugin:30681): GLib-GObject-WARNING **: can't peek value table for type `CustomBoxed' which is not currently referenced
(test-value-plugin:30681): GLib-GObject-WARNING **: gvalue.c:96: cannot initialize GValue with type `CustomBoxed', this type has no GTypeValueTable implementation
The documentation mentions that a dynamic type can be referenced with either g_type_class_ref() or g_type_create_instance(). Unfortunately, neither of these functions can be used with boxed types.
Version: 2.12.x