[pitivi] Show the project name in the window title. Fixes #575975.



commit a5e5b0d632bcad9364ad959706f7bb46d6a05e2f
Author: Alessandro Decina <alessandro d gmail com>
Date:   Tue Aug 18 13:23:41 2009 +0200

    Show the project name in the window title. Fixes #575975.

 pitivi/ui/mainwindow.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 08c4cb0..7f4fe0f 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -683,6 +683,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
         self._connectToProjectSources(project.sources)
         can_render = project.timeline.duration > 0
         self.render_button.set_sensitive(can_render)
+        self._syncDoUndo(self.app.action_log)
 
     def _projectManagerNewProjectLoadingCb(self, projectManager, uri):
         self.log("A NEW project is being loaded, deactivate UI")
@@ -851,6 +852,14 @@ class PitiviMainWindow(gtk.Window, Loggable):
         can_redo = bool(action_log.redo_stacks)
         redo_action.set_sensitive(can_redo)
 
+        if self.project is not None:
+            app_name = "%s %s" % (APPNAME, pitivi_version)
+            title = u"%s \u2014 %s" % (self.project.name, app_name)
+            if dirty:
+                title = "*" + title
+            title = title.encode("utf8")
+            self.set_title(title)
+
 ## PiTiVi current project callbacks
 
     def _setProject(self):



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