[gnome-games] collection-icon-view: Add invalidate_flow_box_filter()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] collection-icon-view: Add invalidate_flow_box_filter()
- Date: Tue, 8 Jan 2019 10:10:46 +0000 (UTC)
commit 9a86508119bf0b9b370d1a0be7dfcacb936ff9de
Author: Yetizone <andreii lisita gmail com>
Date: Mon Dec 31 12:23:49 2018 +0200
collection-icon-view: Add invalidate_flow_box_filter()
Needed for the next commit
src/ui/collection-icon-view.vala | 4 ++++
src/ui/sidebar-view.vala | 1 +
2 files changed, 5 insertions(+)
---
diff --git a/src/ui/collection-icon-view.vala b/src/ui/collection-icon-view.vala
index 7029a2f2..8ec9ed7d 100644
--- a/src/ui/collection-icon-view.vala
+++ b/src/ui/collection-icon-view.vala
@@ -167,6 +167,10 @@ private class Games.CollectionIconView : Gtk.Bin {
flow_box.unselect_all ();
}
+ public void invalidate_flow_box_filter () {
+ flow_box.invalidate_filter ();
+ }
+
[GtkCallback]
private bool on_gamepad_browse (Gtk.DirectionType direction) {
if (!has_game_selected ())
diff --git a/src/ui/sidebar-view.vala b/src/ui/sidebar-view.vala
index 7307ddb7..202c1433 100644
--- a/src/ui/sidebar-view.vala
+++ b/src/ui/sidebar-view.vala
@@ -173,6 +173,7 @@ private abstract class Games.SidebarView : Gtk.Box {
list_box.select_row (row_item);
row_item.focus (Gtk.DirectionType.LEFT);
invalidate (row_item);
+ collection_view.invalidate_flow_box_filter ();
collection_view.reset_scroll_position ();
collection_view.unselect_game ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]