[gnome-games] platforms-view: Fix selecting first visible row
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] platforms-view: Fix selecting first visible row
- Date: Wed, 12 Feb 2020 13:19:41 +0000 (UTC)
commit d859d7bbdd27be627c46d53fe1af92abd1adddd0
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Feb 12 18:18:44 2020 +0500
platforms-view: Fix selecting first visible row
Since we use filter again, it should be get_child_visible() and not
visible.
src/ui/platforms-view.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ui/platforms-view.vala b/src/ui/platforms-view.vala
index dac8c578..30b85f2e 100644
--- a/src/ui/platforms-view.vala
+++ b/src/ui/platforms-view.vala
@@ -219,7 +219,7 @@ private class Games.PlatformsView : Gtk.Bin {
foreach (var child in list_box.get_children ()) {
var row = child as Gtk.ListBoxRow;
- if (row.visible) {
+ if (row.get_child_visible ()) {
list_box.select_row (row);
row.focus (Gtk.DirectionType.LEFT);
select_platform_for_row (row);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]