Commit 19f2405c authored by Alexandru Băluț's avatar Alexandru Băluț Committed by Thibault Saunier

elements: Stop setting the unused 'selected' field

Reviewed-by: Thibault Saunier's avatarThibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D675
parent 53b11005
......@@ -972,7 +972,6 @@ class UriClip(SourceClip):
super(UriClip, self).__init__(layer, bClip)
self.set_tooltip_markup(misc.filename_from_uri(bClip.get_uri()))
self.bClip.selected.connect("selected-changed", self._selectedChangedCb)
def _childAdded(self, clip, child):
super(UriClip, self)._childAdded(clip, child)
......@@ -989,9 +988,6 @@ class UriClip(SourceClip):
self._elements_container.pack_start(self._videoSource, True, False, 0)
self._videoSource.set_visible(True)
def _selectedChangedCb(self, unused_child, selected):
self.selected = selected
class TitleClip(SourceClip):
__gtype_name__ = "PitiviTitleClip"
......@@ -1052,9 +1048,7 @@ class TransitionClip(Clip):
def _selectedChangedCb(self, unused_child, selected, child):
if selected:
self.app.gui.trans_list.activate(child)
self.selected = True
else:
self.selected = False
self.app.gui.trans_list.deactivate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment