[gnome-games/wip/exalm/libhandy: 3/8] ui: Stop manually adding/removing folded style class
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/libhandy: 3/8] ui: Stop manually adding/removing folded style class
- Date: Wed, 26 Feb 2020 19:14:20 +0000 (UTC)
commit 76a3052b85a1c8320bcc76fd7a105764c3dd9e8e
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]