[gnome-games] input-mode-switcher: Disconnect signals from runner
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] input-mode-switcher: Disconnect signals from runner
- Date: Wed, 21 Aug 2019 21:22:12 +0000 (UTC)
commit 4927ce93947a5fdd6ba0506700a571989e25b374
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Aug 22 02:13:10 2019 +0500
input-mode-switcher: Disconnect signals from runner
src/ui/empty-collection.vala | 3 +--
src/ui/input-mode-switcher.vala | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/empty-collection.vala b/src/ui/empty-collection.vala
index f1e1455a..f37be6cc 100644
--- a/src/ui/empty-collection.vala
+++ b/src/ui/empty-collection.vala
@@ -6,7 +6,6 @@ private class Games.EmptyCollection : Gtk.Box {
private Gtk.Image icon;
construct {
- var icon_name = Config.APPLICATION_ID + "-symbolic";
- icon.icon_name = icon_name;
+ icon.icon_name = Config.APPLICATION_ID + "-symbolic";
}
}
diff --git a/src/ui/input-mode-switcher.vala b/src/ui/input-mode-switcher.vala
index 5e4651ac..13321973 100644
--- a/src/ui/input-mode-switcher.vala
+++ b/src/ui/input-mode-switcher.vala
@@ -6,6 +6,9 @@ private class Games.InputModeSwitcher : Gtk.Box {
public Runner runner {
get { return _runner; }
set {
+ if (runner != null)
+ runner.notify["input-mode"].disconnect (on_input_mode_changed);
+
_runner = value;
if (value == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]