pharo-spec / mars-gtk

The Gtk3 bindings for Pharo and Spec
14 stars 6 forks source link

GtkListAdapter does not know refreshWidgetList #24

Closed pavel-krivanek closed 4 years ago

pavel-krivanek commented 4 years ago

GtkListAdapter does not know refreshWidgetList, it is potentially called from SpListPresenter>>#updateList

pavel-krivanek commented 4 years ago

Here is the simplified example showing our problem.

Issue24.zip

It is not the most typical usage but in Morphic it works and in Gtk not. Our motivation to do the explicit update is in fact that we are creating some dependency relationships between the list model and other objects. If we would use directly the collection: message that invokes the update mechanism, we would run into an infinite loop.

If you think we should not do it like that, tell me and we will need to redesign it (probably enter some next layer for handling dependencies)