[gnome-games] ui: Reset scroll position when switching views
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Reset scroll position when switching views
- Date: Sat, 4 Aug 2018 11:22:12 +0000 (UTC)
commit 41d62e6475e76210cbda57c0ebfe5e3612e428a1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Aug 4 15:28:25 2018 +0500
ui: Reset scroll position when switching views
src/ui/collection-box.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/ui/collection-box.vala b/src/ui/collection-box.vala
index cc28c476..7df36578 100644
--- a/src/ui/collection-box.vala
+++ b/src/ui/collection-box.vala
@@ -110,6 +110,9 @@ private class Games.CollectionBox : Gtk.Box {
else if (viewstack.visible_child == developer_view) {
developer_view.select_default_row ();
}
+ else {
+ collection_view.reset_scroll_position ();
+ }
}
[GtkCallback]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]