Created attachment 7272 Allow to store empty arrays xfconf 4.13.3 introduced an issue: applications now can't store empty GPtrArrays because it will be just ignored with warning: > g_return_val_if_fail (arr && arr->len != 0, NULL); Ignoring empty arrays won't also work because g_variant_builder_end won't work if you haven't added anything to GVariantBuilder. I suggest to return an empty array of variants if arr->len == 0. I'm attaching the patch which does that.
Created attachment 7286 Reset empty array I'm also experiencing this, yet not being able to store empty arrays seems intentional. xfconf-query Doesn't allow one to store empty arrays. Removing all the plugins from a panel causes the corresponding key to vanish entirely, i.e. to be reset. And there is an assert for it, which should be clear indication of intent. It's just that xfconf_g_property_object_notify in xfconf-binding.c doesn't heed this yet. It will happily deliver an array with no members.
I'm closing this bug, since Victor's patch has been already applied and solves the problem. Thanks you both.