[pitivi/ges: 118/287] ui: Fix clip names in the timeline
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 118/287] ui: Fix clip names in the timeline
- Date: Thu, 15 Mar 2012 16:35:45 +0000 (UTC)
commit 54dc0c818560d974be5c63d38a60625948658f9a
Author: Thibault Saunier <thibault saunier collabora com>
Date: Mon Dec 26 00:43:21 2011 +0100
ui: Fix clip names in the timeline
pitivi/ui/trackobject.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/trackobject.py b/pitivi/ui/trackobject.py
index 10f8f91..63ea29f 100644
--- a/pitivi/ui/trackobject.py
+++ b/pitivi/ui/trackobject.py
@@ -452,7 +452,12 @@ class TrackObject(View, goocanvas.Group, Zoomable):
def _setElement(self):
if self.element and not self.is_transition:
- self.name.props.text = self.element.get_property("uri")
+ from pitivi.ui.common import info_name
+
+ sources = self.app.current.sources
+ uri = self.element.props.uri
+ info = sources.getInfoFromUri(uri)
+ self.name.props.text = info_name(info)
twidth, theight = text_size(self.name)
self.namewidth = twidth
self.nameheight = theight
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]