[gnome-music/wip/mschraal/type-checking: 7/9] grltrackerwrapper: Cleanup content changed id handling
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/type-checking: 7/9] grltrackerwrapper: Cleanup content changed id handling
- Date: Wed, 21 Oct 2020 14:32:19 +0000 (UTC)
commit 85c3a40ab4173e0325d9f35b1d5ac0e5b9ca15d9
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Oct 19 16:19:47 2020 +0200
grltrackerwrapper: Cleanup content changed id handling
gnomemusic/grilowrappers/grltrackerwrapper.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/grilowrappers/grltrackerwrapper.py b/gnomemusic/grilowrappers/grltrackerwrapper.py
index d7da60b0..50b1655b 100644
--- a/gnomemusic/grilowrappers/grltrackerwrapper.py
+++ b/gnomemusic/grilowrappers/grltrackerwrapper.py
@@ -123,7 +123,7 @@ class GrlTrackerWrapper(GObject.GObject):
self._full_options.set_resolution_flags(
Grl.ResolutionFlags.FULL | Grl.ResolutionFlags.IDLE_RELAY)
- self._content_changed_id = None
+ self._content_changed_id = 0
self.props.source = source
self._initial_songs_fill()
@@ -143,9 +143,9 @@ class GrlTrackerWrapper(GObject.GObject):
:param Grl.Source new_source: new grilo tracker source
"""
- if self._content_changed_id is not None:
+ if self._content_changed_id != 0:
self._source.disconnect(self._content_changed_id)
- self._content_changed_id = None
+ self._content_changed_id = 0
self._source = new_source
self._source.notify_change_start()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]