[gnome-games/wip/exalm/controller-preferences] ui: Remove visible_page_changed() from PreferencesPage



commit 2f1f4b74addfbbe3b5eef47338b6e3c18e9e0f66
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Wed Sep 12 02:32:01 2018 +0500

    ui: Remove visible_page_changed() from PreferencesPage
    
    Now that controllers page doesn't use it anymore, it can be removed.

 src/ui/preferences-page.vala   | 1 -
 src/ui/preferences-window.vala | 4 ----
 2 files changed, 5 deletions(-)
---
diff --git a/src/ui/preferences-page.vala b/src/ui/preferences-page.vala
index 563b1bd7..e04e4f54 100644
--- a/src/ui/preferences-page.vala
+++ b/src/ui/preferences-page.vala
@@ -3,5 +3,4 @@
 private interface Games.PreferencesPage: Gtk.Widget {
        public abstract Gtk.HeaderBar header_bar { get; protected set; }
        public abstract PreferencesSubpage subpage { get; protected set; }
-       public virtual void visible_page_changed () {}
 }
diff --git a/src/ui/preferences-window.vala b/src/ui/preferences-window.vala
index b5aa4e16..12c86f77 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -60,10 +60,6 @@ private class Games.PreferencesWindow : Gtk.Window {
        private Binding subpage_binding;
 
        public PreferencesWindow () {
-               stack.foreach ((child) => {
-                       var page = child as PreferencesPage;
-                       stack.notify["visible-child-name"].connect (page.visible_page_changed);
-               });
                stack.notify["visible-child-name"].connect (visible_child_changed);
                visible_child_changed ();
        }


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