diff options
author | Ted Gould <ted@gould.cx> | 2014-03-02 20:39:27 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-02 20:39:27 -0600 |
commit | c046c8f4bf047668341745a0d573a2b9ce4f1964 (patch) | |
tree | 4b84a25f7a5742d46009d99924c1d50f0f316ac3 /src | |
parent | 0d6e0d7dc3c4213cb6fc265b427b8d871fc45bf4 (diff) | |
download | ayatana-indicator-sound-c046c8f4bf047668341745a0d573a2b9ce4f1964.tar.gz ayatana-indicator-sound-c046c8f4bf047668341745a0d573a2b9ce4f1964.tar.bz2 ayatana-indicator-sound-c046c8f4bf047668341745a0d573a2b9ce4f1964.zip |
Use the detail to make this a little cleaner
Diffstat (limited to 'src')
-rw-r--r-- | src/service.vala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/service.vala b/src/service.vala index a35d465..075c6df 100644 --- a/src/service.vala +++ b/src/service.vala @@ -373,9 +373,8 @@ public class IndicatorSound.Service: Object { var play_action = new SimpleAction.stateful ("play." + player.id, null, player.state); play_action.activate.connect ( () => player.play_pause () ); this.actions.add_action (play_action); - player.notify.connect ( (object, pspec) => { - if (pspec.name == "state") - play_action.set_state (player.state); + player.notify["state"].connect ( (object, pspec) => { + play_action.set_state (player.state); }); var next_action = new SimpleAction ("next." + player.id, null); |