[gnome-music/wip/merge: 75/343] Set callbacks correctly



commit 5e9e1233922a659c3b78dd5e6873f279267a1118
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 00:21:32 2013 +0200

    Set callbacks correctly

 gnomemusic/player.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index bff789d..3fcf691 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -430,12 +430,12 @@ class Player(GObject.GObject):
 
         self._syncRepeatImage()
 
-        self.prevBtn.connect("clicked", self._onPrevBtnClicked())
-        self.playBtn.connect("clicked", self._onPlayBtnClicked())
-        self.nextBtn.connect("clicked", self._onNextBtnClicked())
+        self.prevBtn.connect("clicked", self._onPrevBtnClicked)
+        self.playBtn.connect("clicked", self._onPlayBtnClicked)
+        self.nextBtn.connect("clicked", self._onNextBtnClicked)
         self.progressScale.connect("button-press-event", self._onProgressScaleEvent)
-        self.progressScale.connect("value-changed", self._onProgressValueChanged())
-        self.progressScale.connect("button-release-event", self._onProgressScaleButtonReleased())
+        self.progressScale.connect("value-changed", self._onProgressValueChanged)
+        self.progressScale.connect("button-release-event", self._onProgressScaleButtonReleased)
 
     def _onProgressScaleButtonReleased(self):
         self.onProgressScaleChangeValue(self.progressScale)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]