[pitivi: 5/36] Better handling of tag names
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 5/36] Better handling of tag names
- Date: Sun, 22 May 2011 20:31:53 +0000 (UTC)
commit 909dc8993d3278862a6f6cbfeeeb8e3bd08e6557
Author: Pier Carteri <pier carteri gmail com>
Date: Mon May 24 22:23:50 2010 +0200
Better handling of tag names
pitivi/ui/filechooserpreview.py | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/ui/filechooserpreview.py b/pitivi/ui/filechooserpreview.py
index cbd252c..a143413 100644
--- a/pitivi/ui/filechooserpreview.py
+++ b/pitivi/ui/filechooserpreview.py
@@ -117,8 +117,6 @@ class PreviewWidget(gtk.VBox):
#a filler
self.pack_start( gtk.Label(''))
- def test_event(self, *arg):
- print arg
def add_preview_request(self, dialogbox):
"""add a preview request """
@@ -308,10 +306,17 @@ class PreviewWidget(gtk.VBox):
keys = tag_list.keys()
keys.sort()
for tag in keys:
- value = unicode(tag_list[tag]).replace('<', ' ').replace('>', ' ')
- self.tag_text = self.tag_text + '<b>' + tag + '</b> ' \
- + value \
- + '\n'
+ tag_type = gst.tag_get_tag_type(tag)
+ if tag_type in (gobject.TYPE_STRING,
+ gobject.TYPE_DOUBLE,
+ gobject.TYPE_FLOAT,
+ gobject.TYPE_INT,
+ gobject.TYPE_UINT):
+ value = unicode(tag_list[tag]).replace('<', ' ').replace('>', ' ')
+ name = gst.tag_get_nick(tag)
+ self.tag_text = self.tag_text + '<b>' + name + '</b> ' \
+ + value \
+ + '\n'
self.description.set_markup(self.tag_text)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]