[pitivi] UI: set is_important property of Save, Import, Render, and Undo actions



commit b4efc988383de6e391ce6120aff73f1272fd1db4
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Tue Jul 21 12:53:49 2009 -0700

    UI: set is_important property of Save, Import, Render, and Undo actions
    closes bug 575963

 pitivi/ui/mainwindow.py |   13 ++++++++++---
 pitivi/ui/sourcelist.py |    1 +
 2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 17ff12d..3221555 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -305,6 +305,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
                 self.render_button = action
                 # this will be set sensitive when the timeline duration changes
                 action.set_sensitive(False)
+                action.props.is_important = True
             elif action_name == "ImportfromCam":
                 self.webcam_button = action
                 action.set_sensitive(False)
@@ -315,7 +316,7 @@ class PitiviMainWindow(gtk.Window, Loggable):
                 action.set_visible(False)
             elif action_name in [
                 "ProjectSettings", "Quit", "File", "Edit", "Help", "About",
-                "View", "FullScreen", "FullScreenAlternate", "ImportSources",
+                "View", "FullScreen", "FullScreenAlternate",
                 "ImportSourcesFolder", "PluginManager", "PlayPause",
                 "Project", "FrameForward", "FrameBackward",
                 "ShowHideMainToolbar", "ShowHideTimelineToolbar", "Library",
@@ -323,10 +324,16 @@ class PitiviMainWindow(gtk.Window, Loggable):
                 "SecondForward", "SecondBackward", "EdgeForward",
                 "EdgeBackward", "Preferences"]:
                 action.set_sensitive(True)
-            elif action_name in ["SaveProject", "SaveProjectAs",
-                    "NewProject", "OpenProject"]:
+            elif action_name in ["NewProject", "SaveProjectAs", "OpenProject"]:
                 if instance.settings.fileSupportEnabled:
                     action.set_sensitive(True)
+            elif action_name == "SaveProject":
+                if instance.settings.fileSupportEnabled:
+                    action.set_sensitive(True)
+                action.props.is_important = True
+            elif action_name == "Undo":
+                action.set_sensitive(True)
+                action.props.is_important = True
             else:
                 action.set_sensitive(False)
 
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index b1ffa63..eef3a9c 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -298,6 +298,7 @@ class SourceList(gtk.VBox, Loggable):
 
         actiongroup = gtk.ActionGroup("sourcelistpermanent")
         actiongroup.add_actions(actions)
+        actiongroup.get_action("ImportSources").props.is_important = True
         uiman.insert_action_group(actiongroup, 0)
 
         self.selection_actions = gtk.ActionGroup("sourcelistselection")



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