[gnome-games/wip/exalm/spinner: 24/25] fixme: A hack for crossfade
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/spinner: 24/25] fixme: A hack for crossfade
- Date: Sat, 9 Feb 2019 12:20:32 +0000 (UTC)
commit cffe4ffdb04767c8ca15fa4db5c1f613eacccebb
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Oct 6 23:37:57 2018 +0500
fixme: A hack for crossfade
The main stacks don't use transition by default. However, we want it to
happen for loading state. One solution would be to enable it generally,
but this one enables it only while switching from loading to collection
initially. :(
src/ui/application-window.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 24f41075..023b5e7e 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -740,11 +740,15 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
}
public void on_collection_loaded () {
+ content_box.transition_type = Gtk.StackTransitionType.CROSSFADE;
+ header_bar.transition_type = Gtk.StackTransitionType.CROSSFADE;
if (game_to_run != null) {
ui_state = UiState.DISPLAY;
run_game (game_to_run);
game_to_run = null;
} else
ui_state = UiState.COLLECTION;
+ content_box.transition_type = Gtk.StackTransitionType.NONE;
+ header_bar.transition_type = Gtk.StackTransitionType.NONE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]