[pitivi] Update the clip's effect list when dragging onto the timeline
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Update the clip's effect list when dragging onto the timeline
- Date: Wed, 11 Jul 2012 19:21:30 +0000 (UTC)
commit 61c7b60b9f7520b308e6e183f8c061ac1b3dc084
Author: Matas Brazdeikis <matas brazdeikis lt>
Date: Wed Jul 11 15:19:45 2012 -0400
Update the clip's effect list when dragging onto the timeline
pitivi/clipproperties.py | 14 +++++++-------
pitivi/timeline/timeline.py | 1 +
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 79b7343..b664e84 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -269,7 +269,7 @@ class EffectProperties(gtk.Expander, gtk.HBox):
def _newProjectLoadedCb(self, app, project):
self.clip_properties.project = project
self.selected_effects = self.timeline.selection.getSelectedTrackEffects()
- self._updateAll()
+ self.updateAll()
def _vcontentNotifyCb(self, paned, gparamspec):
if gparamspec.name == 'position':
@@ -309,19 +309,19 @@ class EffectProperties(gtk.Expander, gtk.HBox):
else:
self.timeline_objects = []
self.set_sensitive(False)
- self._updateAll()
+ self.updateAll()
def _trackObjectAddedCb(self, unused_timeline_object, track_object):
if isinstance(track_object, ges.TrackEffect):
selec = self.timeline.selection.getSelectedTrackEffects()
self.selected_effects = selec
- self._updateAll()
+ self.updateAll()
def _trackRemovedRemovedCb(self, unused_timeline_object, track_object):
if isinstance(track_object, ges.TrackEffect):
selec = self.timeline.selection.getSelectedTrackEffects()
self.selected_effects = selec
- self._updateAll()
+ self.updateAll()
def _connectTimelineSelection(self, timeline):
self.timeline = timeline
@@ -365,7 +365,7 @@ class EffectProperties(gtk.Expander, gtk.HBox):
effect = ges.TrackParseLaunchEffect(bin_desc)
tlobj.add_track_object(effect)
track.add_object(effect)
- self._updateAll()
+ self.updateAll()
self.app.action_log.commit()
self.app.current.pipeline.flushSeek()
@@ -401,7 +401,7 @@ class EffectProperties(gtk.Expander, gtk.HBox):
self.app.action_log.commit()
def _expandedCb(self, expander, params):
- self._updateAll()
+ self.updateAll()
def _treeViewQueryTooltipCb(self, treeview, x, y, keyboard_mode, tooltip):
context = treeview.get_tooltip_context(x, y, keyboard_mode)
@@ -413,7 +413,7 @@ class EffectProperties(gtk.Expander, gtk.HBox):
return True
- def _updateAll(self):
+ def updateAll(self):
if self.get_expanded():
self._removeEffectBt.set_sensitive(False)
if len(self.timeline_objects) == 1:
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 0490a05..c250f02 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -915,6 +915,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
effect = ges.TrackParseLaunchEffect(bin_desc)
tlobj.add_track_object(effect)
track.add_object(effect)
+ self.app.gui.clipconfig.effect_expander.updateAll()
self.app.action_log.commit()
self._factories = None
self._seeker.flush()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]