[pitivi: 54/65] Enable the Save button when the selected audio preset is changed, in ProjectSettingsDialog.



commit 8b4636f1173c70df2199b91e15cb8ecc4f0190a4
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Tue Jun 14 11:23:52 2011 +0200

    Enable the Save button when the selected audio preset is changed, in ProjectSettingsDialog.
    
    Fixes bug 652537.

 pitivi/ui/projectsettings.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index 50c5f74..0ef7ec2 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -139,9 +139,9 @@ class ProjectSettingsDialog():
                  update_func=self._updateAudioSaveButton)
         self.wg.addVertex(self.save_video_preset_button,
                  update_func=self._updateVideoSaveButton)
-        self.wg.addVertex(self.channels_combo)
-        self.wg.addVertex(self.sample_rate_combo)
-        self.wg.addVertex(self.sample_depth_combo)
+        self.wg.addVertex(self.channels_combo, signal="changed")
+        self.wg.addVertex(self.sample_rate_combo, signal="changed")
+        self.wg.addVertex(self.sample_depth_combo, signal="changed")
 
         # constrain width and height IFF constrain_sar_button is active
         self.wg.addEdge(self.width_spinbutton, self.height_spinbutton,
@@ -199,12 +199,15 @@ class ProjectSettingsDialog():
                 self.video_preset_treeview, self.video_presets,
                 self._updateVideoPresetButtons)
 
+        # Bind the widgets in the Video tab to the Video Presets Manager.
         self.bindSpinbutton(self.video_presets, "width", self.width_spinbutton)
         self.bindSpinbutton(self.video_presets, "height",
             self.height_spinbutton)
         self.bindFractionWidget(self.video_presets, "frame-rate",
             self.frame_rate_fraction_widget)
         self.bindPar(self.video_presets)
+
+        # Bind the widgets in the Audio tab to the Audio Presets Manager.
         self.bindCombo(self.audio_presets, "channels",
             self.channels_combo)
         self.bindCombo(self.audio_presets, "sample-rate",



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