[pitivi] ProjectSettings: remove buttons only senstive when a preset is selected
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ProjectSettings: remove buttons only senstive when a preset is selected
- Date: Fri, 10 Dec 2010 17:53:13 +0000 (UTC)
commit 21307a06dac424126e1fbf2adad06b88aaba5d85
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 26 11:52:42 2010 +0000
ProjectSettings: remove buttons only senstive when a preset is selected
pitivi/ui/projectsettings.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/projectsettings.py b/pitivi/ui/projectsettings.py
index cf25713..ee011bd 100644
--- a/pitivi/ui/projectsettings.py
+++ b/pitivi/ui/projectsettings.py
@@ -261,8 +261,10 @@ class ProjectSettingsDialog(GladeWindow):
mgr.restorePreset(preset)
if mgr == self.audio_presets:
self._updateAudioSaveButton(None, self.save_audio_preset_button)
+ self.remove_audio_preset_button.set_sensitive(bool(preset))
else:
self._updateVideoSaveButton(None, self.save_video_preset_button)
+ self.remove_video_preset_button.set_sensitive(bool(preset))
def constrained(self):
return self.constrain_sar_button.props.active
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]