[pitivi] ui/clipproperties.py: Handle Delete effect button sensitivity
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui/clipproperties.py: Handle Delete effect button sensitivity
- Date: Wed, 22 Sep 2010 13:46:38 +0000 (UTC)
commit cb9c2ef3a57420b498206a2bc688f0b2fe6aab61
Author: Thibault Saunier <tsaunier gnome org>
Date: Wed Sep 1 14:29:14 2010 +0200
ui/clipproperties.py: Handle Delete effect button sensitivity
pitivi/ui/clipproperties.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/clipproperties.py b/pitivi/ui/clipproperties.py
index bebfc59..fdaeeb5 100644
--- a/pitivi/ui/clipproperties.py
+++ b/pitivi/ui/clipproperties.py
@@ -332,6 +332,7 @@ class EffectProperties(gtk.Expander):
def _updateAll(self):
if self.get_expanded():
+ self.removeEffectBt.set_sensitive(False)
if self.timeline_objects:
self._setEffectDragable()
self._updateTreeview()
@@ -388,8 +389,10 @@ class EffectProperties(gtk.Expander):
def _treeviewSelectionChangedCb(self, treeview):
if self.selection.count_selected_rows() == 0 and self.timeline_objects:
self.app.gui.setActionsSensitive(['DeleteObj'], True)
+ self.removeEffectBt.set_sensitive(False)
else:
self.app.gui.setActionsSensitive(['DeleteObj'], False)
+ self.removeEffectBt.set_sensitive(True)
self._updateEffectConfigUi()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]