[gnome-games] collection-header-bar: Don't suppress stack transition



commit 452be34a3205622a1cca1ad48efa6c1ca33d50e7
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Aug 19 21:12:07 2019 +0500

    collection-header-bar: Don't suppress stack transition
    
    None of the solutions are ideal, but this allows us to prepare the code
    for GTK4.

 src/ui/collection-header-bar.vala | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/ui/collection-header-bar.vala b/src/ui/collection-header-bar.vala
index 0801b79d..25dee581 100644
--- a/src/ui/collection-header-bar.vala
+++ b/src/ui/collection-header-bar.vala
@@ -33,7 +33,7 @@ private class Games.CollectionHeaderBar : Gtk.Bin {
                get { return _adaptive_state; }
                construct {
                        _adaptive_state = value;
-                       adaptive_state.notify["is-folded"].connect (update_folded);
+                       adaptive_state.notify["is-folded"].connect (update_subview);
                        adaptive_state.notify["is-subview-open"].connect (update_subview);
                        adaptive_state.notify["subview-title"].connect (update_subview_title);
                }
@@ -83,13 +83,6 @@ private class Games.CollectionHeaderBar : Gtk.Bin {
                stack.visible_child_name = show_subview ? "subview" : "main";
        }
 
-       private void update_folded () {
-               bool show_subview = adaptive_state.is_subview_open && adaptive_state.is_folded;
-
-               // FIXME: have a transition here. Crossfade doens't work well at the moment
-               stack.set_visible_child_full (show_subview ? "subview" : "main", 
Gtk.StackTransitionType.NONE);
-       }
-
        private void update_subview_title () {
                subview_header_bar.title = adaptive_state.subview_title;
        }


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