[gnome-games/wip/exalm/libhandy2: 10/21] ui: Remove visible_page_changed() from PreferencesPage
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/libhandy2: 10/21] ui: Remove visible_page_changed() from PreferencesPage
- Date: Wed, 12 Sep 2018 14:54:16 +0000 (UTC)
commit 774226a71f1e6efd9836038ed9fcddc69e9294b5
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]