diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-29 11:05:16 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-29 11:05:16 -0600 |
commit | 9c02dfba50242cd2eaf259c3efebc55290cdedcf (patch) | |
tree | a9766c7a04b0ed7b249f0c2d31fff4364d51e472 /src/media-player-mpris.vala | |
parent | 707fd6c5e2d5bdfa6ff1b87f770c1d0b8e8d0894 (diff) | |
download | ayatana-indicator-sound-9c02dfba50242cd2eaf259c3efebc55290cdedcf.tar.gz ayatana-indicator-sound-9c02dfba50242cd2eaf259c3efebc55290cdedcf.tar.bz2 ayatana-indicator-sound-9c02dfba50242cd2eaf259c3efebc55290cdedcf.zip |
prefer Source.REMOVE instead of false in timeout funcs
Diffstat (limited to 'src/media-player-mpris.vala')
-rw-r--r-- | src/media-player-mpris.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/media-player-mpris.vala b/src/media-player-mpris.vala index 408cdda..148a30a 100644 --- a/src/media-player-mpris.vala +++ b/src/media-player-mpris.vala @@ -226,7 +226,7 @@ public class MediaPlayerMpris: MediaPlayer { if (this.play_when_attached) { /* wait a little before calling PlayPause, some players need some time to set themselves up */ - Timeout.add (1000, () => { proxy.PlayPause.begin (); return false; } ); + Timeout.add (1000, () => { proxy.PlayPause.begin (); return Source.REMOVE; } ); this.play_when_attached = false; } } @@ -269,7 +269,7 @@ public class MediaPlayerMpris: MediaPlayer { return; } - Timeout.add (500, () => { this.fetch_playlists (); return false; } ); + Timeout.add (500, () => { this.fetch_playlists (); return Source.REMOVE; } ); } /* some players (e.g. Spotify) don't follow the spec closely and pass single strings in metadata fields |