Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/aplay.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-02-02 16:27:46 (GMT)
committer Daniel Drake <dsd@laptop.org>2011-02-02 16:37:48 (GMT)
commit3bc80c776f7ef2578a4b9fd26028574a12982ea3 (patch)
tree890aa0ee4a2b07d9c9704883d11f0385e03a2e70 /aplay.py
parentca2bbd6d74342247de97cffa150b577246c63107 (diff)
UI rework
This is a rework of the UI that uses a more standard GTK+ principles than previously. There is still a small amount of black magic, kept away inside mediaview.py. The UI/model separation was also refined in places, and a lot of code was simplified. Overall the functionality remains identical, and I tried to keep the UI the same as before (but it is not pixel perfect). As this was quite big there may be some bugs to shake out.
Diffstat (limited to 'aplay.py')
-rw-r--r--aplay.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/aplay.py b/aplay.py
index c9aa811..fd6aaee 100644
--- a/aplay.py
+++ b/aplay.py
@@ -13,8 +13,10 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import gst
-
+import os
import logging
+import constants
+
logger = logging.getLogger('record:aplay.py')
def play(file, done_cb=None):
@@ -37,7 +39,7 @@ def play(file, done_cb=None):
bus.connect('message::eos', eos_cb)
bus.connect('message::error', error_cb)
- player.props.uri = 'file://' + file
+ player.props.uri = 'file://' + os.path.join(constants.GFX_PATH, file)
player.set_state(gst.STATE_PLAYING)