Reparsing with GtkBuilder



Hi
If i used gtk_builder_add_from_string to parse some string for builder which already has some content then application terminates  with following message
>    Gtk-ERROR **: file gtkbuilder.c: line 567 (apply_delayed_properties): assertion failed: (object != NULL)
if builder had already set some delayed property.

If builder had not set any delayed property previously then it does not crashes while reparsing with add_string.

Is this bug in Gtk+?

Delayed properties are applied in parser finished.
If we parse any buffer again with same builder then it tries to set the delayed properties again which are irrelevant.
setting builder->delayed_properties to NULL in parser_finished solves above problem but is this a right solution or it has any other side effects?
If new buffer has any delayed properties associated with objects then  builder->delayed_properties will set again and that properties will be applied in parser_finished.

Regards
Amol






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]