[pitivi] project: Make the "Restore from backup" dialog modal to the main window
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project: Make the "Restore from backup" dialog modal to the main window
- Date: Tue, 19 Mar 2013 19:17:06 +0000 (UTC)
commit 01f137e0d96bfc883e3dc177f77c2ba508e78efa
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Fri Mar 15 16:26:32 2013 -0400
project: Make the "Restore from backup" dialog modal to the main window
pitivi/application.py | 2 +-
pitivi/project.py | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 8d2b266..04b1f1f 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -136,7 +136,7 @@ class Pitivi(Loggable, Signallable):
self.effects = EffectsHandler()
self.system = getSystem()
- self.projectManager = ProjectManager(self.effects)
+ self.projectManager = ProjectManager(self)
self._connectToProjectManager(self.projectManager)
self.action_log = UndoableActionLog()
diff --git a/pitivi/project.py b/pitivi/project.py
index 926e04b..020cca8 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -119,13 +119,13 @@ class ProjectManager(Signallable, Loggable):
"reverting-to-saved": ["project"],
}
- def __init__(self, avalaible_effects={}):
+ def __init__(self, app_instance):
Signallable.__init__(self)
Loggable.__init__(self)
-
+ self.app = app_instance
+ # Current project:
self.current = None
self.backup_lock = 0
- self.avalaible_effects = avalaible_effects
self.formatter = None
def loadProject(self, uri):
@@ -190,7 +190,8 @@ class ProjectManager(Signallable, Loggable):
(_("Ignore backup"), Gtk.ResponseType.REJECT,
_("Restore from backup"), Gtk.ResponseType.YES))
dialog.set_icon_name("pitivi")
- dialog.set_resizable(False)
+ dialog.set_transient_for(self.app.gui)
+ dialog.set_modal(True)
dialog.set_default_response(Gtk.ResponseType.YES)
primary = Gtk.Label()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]