Put basename of open file into window title
authorRené Stadler <mail@renestadler.de>
Mon, 26 Nov 2007 13:42:44 +0000 (15:42 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 11 Sep 2014 18:51:39 +0000 (20:51 +0200)
debug-viewer/GstDebugViewer/GUI.py

index 0c37226..3800b26 100755 (executable)
@@ -1191,6 +1191,10 @@ class Window (object):
                         return
                 self.handle_environment_error (exc, filename)
                 return
+
+            basename = os.path.basename (filename)
+            self.gtk_window.props.title = _("%s - GStreamer Debug Viewer") % (basename,)
+
             self.log_file.consumers.append (self)
             self.log_file.start_loading ()