[gnome-games/wip/exalm/libhandy4: 15/19] ui: Remove visible_page_changed() from PreferencesPage



commit de25017f7991468893df95cbe4c9621baa415cb7
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 9771e9b9..a4982f16 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -69,10 +69,6 @@ private class Games.PreferencesWindow : Gtk.Window {
        private Binding selection_mode_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]