[pitivi] Show the full pathname in the tooltip for an asset



commit 25ab2687d0f9be1d902e60dea23926885ede87f9
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sat Mar 1 17:09:47 2014 +0100

    Show the full pathname in the tooltip for an asset
    
    The file name is already visible, the full path can be useful.

 pitivi/utils/ui.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/ui.py b/pitivi/utils/ui.py
index 6a9e741..d806bbb 100644
--- a/pitivi/utils/ui.py
+++ b/pitivi/utils/ui.py
@@ -45,6 +45,8 @@ from gi.repository import Gtk
 from gi.repository.GstPbutils import DiscovererVideoInfo, DiscovererAudioInfo,\
     DiscovererStreamInfo, DiscovererSubtitleInfo, DiscovererInfo
 
+from pitivi.utils.misc import path_from_uri
+
 from pitivi.utils.loggable import doLog, ERROR
 
 # ---------------------- Constants -------------------------------------------#
@@ -246,7 +248,7 @@ def beautify_info(info):
         if beautified_string:
             nice_streams_txts.append(beautified_string)
 
-    return ("<b>" + info_name(info) + "</b>\n" +
+    return ("<b>" + path_from_uri(info.get_uri()) + "</b>\n" +
         "\n".join(nice_streams_txts))
 
 


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