owickstrom / gi-gtk-declarative

Declarative GTK+ programming in Haskell
https://owickstrom.github.io/gi-gtk-declarative/
288 stars 35 forks source link

Remove properties from nodes when modifying #6

Closed owickstrom closed 4 years ago

owickstrom commented 6 years ago

If a widget is patched its old attributes are not removed (when they aren't present in the new widget), only the existing ones are overwritten. This might require the constructors of SingleWidget and Container to constrain attributes to the clear operation, in addition to construct and set.

owickstrom commented 6 years ago

I think now that the clear operation is not feasible to use, and that the widget should be fully replaced in case some properties have been removed when patching.

owickstrom commented 4 years ago

Fixed by #72 .