[gnome-games/wip/exalm/libhandy2: 12/22] 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: 12/22] ui: Remove visible_page_changed() from PreferencesPage
- Date: Sun, 16 Sep 2018 12:39:43 +0000 (UTC)
commit 1bbaf97fa932e68d8ed5efcf77b81fd52954b5da
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 1e3a0220..2d53741b 100644
--- a/src/ui/preferences-window.vala
+++ b/src/ui/preferences-window.vala
@@ -61,10 +61,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]