[gnome-games/wip/exalm/libhandy: 27/32] ui: Stop manually adding/removing folded style class



commit 465d9a1d17405f25820fd909235b61b88a4e071b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Feb 25 22:52:26 2020 +0500

    ui: Stop manually adding/removing folded style class
    
    Leaflet now does it automatically.

 src/ui/platforms-view.vala     | 4 ----
 src/ui/preferences-window.vala | 9 ---------
 2 files changed, 13 deletions(-)
---
diff --git a/src/ui/platforms-view.vala b/src/ui/platforms-view.vala
index 30b85f2e..4eecf973 100644
--- a/src/ui/platforms-view.vala
+++ b/src/ui/platforms-view.vala
@@ -263,10 +263,6 @@ private class Games.PlatformsView : Gtk.Bin {
        [GtkCallback]
        private void on_leaflet_folded_changed () {
                is_folded = leaflet.folded;
-               if (leaflet.folded)
-                       leaflet.get_style_context ().add_class ("folded");
-               else
-                       leaflet.get_style_context ().remove_class ("folded");
        }
 
        [GtkCallback]
diff --git a/src/ui/preferences-window.vala b/src/ui/preferences-window.vala
index 596b0007..c9083d37 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -127,15 +127,6 @@ private class Games.PreferencesWindow : Gtk.Window {
                window_back_button.visible = folded;
                sidebar.show_selection = !folded;
 
-               if (folded) {
-                       content_box.get_style_context ().add_class ("folded");
-                       titlebar_box.get_style_context ().add_class ("folded");
-               }
-               else {
-                       content_box.get_style_context ().remove_class ("folded");
-                       titlebar_box.get_style_context ().remove_class ("folded");
-               }
-
                if (folded)
                        stack.transition_type = Gtk.StackTransitionType.NONE;
                else


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