GNOME Bugzilla – Bug 775562
Don't use PhotosViewModel in PhotosMainToolbar
Last modified: 2016-12-06 11:30:24 UTC
We are using the PhotosViewModel that is currently being displayed in PhotosMainToolbar to enable/disable the search and selection buttons. We should stop doing that to reduce our ViewModel dependency because we want to remove it during the GtkFlowBox port (bug 690623). Nowadays, each mode has its separate PhotosBaseManager (bug 770157) and they implement the GListModel interface (bug 774191). So it will be easy to find an alternative.
Created attachment 341303 [details] [review] embed, main-toolbar: Don't use ViewModel to enable/disable the buttons
Comment on attachment 341303 [details] [review] embed, main-toolbar: Don't use ViewModel to enable/disable the buttons Pushed to master. Let me know if something is wrong.
Created attachment 341461 [details] [review] main-toolbar: Avoid CRITICALs when activating an item