[gnome-games/wip/exalm/libhandy2: 18/28] ui: Remove visible_page_changed() from PreferencesPage



commit 10f70b8bd14d8014721a4d125b218883bd8180f9
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 c3baa645..5870f7dd 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -62,10 +62,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]