summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKushal Das <kushal@fedoraproject.org>2008-10-02 22:22:37 +0530
committerKushal Das <kushal@fedoraproject.org>2008-10-02 22:22:37 +0530
commitd2c1c946a6f1b04b923d7e6e458c2c1d92ec00a2 (patch)
treef6021e251853609bb1943e5d5d2410045ea430f1
parenta2fee3726349f6ff70206da53d1ab607452bdd41 (diff)
downloadjukebox-activity.git-d2c1c946a6f1b04b923d7e6e458c2c1d92ec00a2.zip
jukebox-activity.git-d2c1c946a6f1b04b923d7e6e458c2c1d92ec00a2.tar.gz
jukebox-activity.git-d2c1c946a6f1b04b923d7e6e458c2c1d92ec00a2.tar.xz
self.player issue solved, it was showing traceback in the log
-rwxr-xr-xjukeboxactivity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/jukeboxactivity.py b/jukeboxactivity.py
index d8cdbaa..02f4a53 100755
--- a/jukeboxactivity.py
+++ b/jukeboxactivity.py
@@ -51,7 +51,7 @@ class JukeboxActivity(activity.Activity):
activity.Activity.__init__(self, handle)
self._object_id = handle.object_id
self.set_title(_('Jukebox Activity'))
-
+ self.player = None
toolbox = activity.ActivityToolbox(self)
self.set_toolbox(toolbox)
@@ -87,7 +87,6 @@ class JukeboxActivity(activity.Activity):
self.p_position = gst.CLOCK_TIME_NONE
self.p_duration = gst.CLOCK_TIME_NONE
- self.player = None
self.bin = gtk.HBox()
self.videowidget = VideoWidget()
self.bin.add(self.videowidget)
@@ -201,7 +200,8 @@ class JukeboxActivity(activity.Activity):
self.toolbar.set_button_pause()
def volume_changed_cb(self, widget, value):
- self.player.player.set_property('volume', value)
+ if self.player:
+ self.player.player.set_property('volume', value)
def scale_button_press_cb(self, widget, event):
self.toolbar.button.set_sensitive(False)