[pitivi] Make the Save button sensitive or insensitive based on context



commit 2954f1d8acbf5bc8a2ad6c61a23812939cbfc310
Author: Alessandro Decina <alessandro d gmail com>
Date:   Thu Jun 11 16:51:21 2009 +0200

    Make the Save button sensitive or insensitive based on context

 pitivi/ui/mainwindow.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 5c24663..5781203 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -292,6 +292,8 @@ class PitiviMainWindow(gtk.Window, Loggable):
 
         # deactivating non-functional actions
         # FIXME : reactivate them
+        save_action = self.actiongroup.get_action("SaveProject")
+        save_action.set_sensitive(False)
 
         for action in self.actiongroup.list_actions():
             action_name = action.get_name()
@@ -762,6 +764,9 @@ class PitiviMainWindow(gtk.Window, Loggable):
         else:
             undo_action.props.label = _("Undo")
 
+        save_action = self.actiongroup.get_action("SaveProject")
+        save_action.set_sensitive(can_undo)
+
         redo_action = self.actiongroup.get_action("Redo")
         can_redo = bool(action_log.redo_stacks)
         redo_action.set_sensitive(can_redo)



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