Add an assertion and comment

Maybe it helps the person unfortunate enough
to stumble in here.
This commit is contained in:
Matthias Clasen 2021-09-27 17:17:06 -04:00
parent 834c72bb0f
commit e3ecd5d23e

View File

@ -606,6 +606,11 @@ gtk_builder_get_parameters (GtkBuilder *builder,
continue;
}
/* At this point, property_value has been set, and we need to either
* copy it to one of the two arrays, or unset it.
*/
g_assert (G_IS_VALUE (&property_value));
if ((prop->pspec->flags & filter_flags) != 0 && filtered_parameters)
object_properties_add (filtered_parameters, property_name, &property_value);
else if ((prop->pspec->flags & filter_flags) == 0 && parameters)