[gnome-games/wip/exalm/spinner: 4/4] fixme: A hack for crossfade



commit d838b71156ce99e37e9850f56159ab368d991c77
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Wed Sep 5 21:23:17 2018 +0500

    fixme: A hack for crossfade

 src/ui/application-window.vala | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 8f4fb522..95522e69 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -711,7 +711,10 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
        }
 
        public void on_collection_loaded () {
-               if (ui_state == UiState.LOADING)
+               if (ui_state == UiState.LOADING) {
+                       content_box.transition_type = Gtk.StackTransitionType.CROSSFADE;
                        ui_state = UiState.COLLECTION;
+                       content_box.transition_type = Gtk.StackTransitionType.NONE;
+               }
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]