[gnome-games/wip/exalm/spinner-performance] sidebar-view: Fix model binding
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/spinner-performance] sidebar-view: Fix model binding
- Date: Sat, 22 Sep 2018 14:20:53 +0000 (UTC)
commit 06bb848c589b4240136f3fda56855f4cc1239538
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Sep 22 15:43:42 2018 +0500
sidebar-view: Fix model binding
src/ui/sidebar-view.vala | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/ui/sidebar-view.vala b/src/ui/sidebar-view.vala
index 65f585ed..cca66717 100644
--- a/src/ui/sidebar-view.vala
+++ b/src/ui/sidebar-view.vala
@@ -32,6 +32,12 @@ private abstract class Games.SidebarView : Gtk.Bin {
_model = value;
+ uint n_items = model.get_n_items ();
+ for (uint i = 0; i < n_items; i++) {
+ var game = model.get_item (i) as Game;
+ game_added (game);
+ }
+
if (model != null)
model_items_changed_id = model.items_changed.connect (on_model_changed);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]