[pitivi] clipproperties: Hide transformation when more than one clip
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] clipproperties: Hide transformation when more than one clip
- Date: Thu, 17 Dec 2015 10:02:12 +0000 (UTC)
commit 85fb9c68ae976a01089565daff622f2d23f9eb86
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Oct 31 01:33:22 2015 +0100
clipproperties: Hide transformation when more than one clip
Reviewed-by: Thibault Saunier <tsaunier gnome org>
Differential Revision: https://phabricator.freedesktop.org/D545
pitivi/clipproperties.py | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/clipproperties.py b/pitivi/clipproperties.py
index 70f9f36..b6bc271 100644
--- a/pitivi/clipproperties.py
+++ b/pitivi/clipproperties.py
@@ -73,7 +73,6 @@ class ClipProperties(Gtk.Box, Loggable):
transformation_expander = TransformationProperties(app)
transformation_expander.set_vexpand(False)
self.pack_start(transformation_expander, False, False, 0)
- transformation_expander.show_all()
viewport = Gtk.ScrolledWindow()
viewport.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
@@ -624,12 +623,8 @@ class TransformationProperties(Gtk.Expander, Loggable):
self.source = None
def _selectionChangedCb(self, unused_timeline):
- if self._selection:
- # choose last selected clip
- # TODO: hide source properties when multiple clips are selected
- for clip in self._selection.selected:
- pass
-
+ if len(self._selection) == 1:
+ clip = list(self._selection)[0]
if clip != self._selected_clip:
self._selected_clip = clip
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]