[pitivi] TimelineObject: Cleanup selected property.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] TimelineObject: Cleanup selected property.
- Date: Fri, 29 May 2009 06:30:25 -0400 (EDT)
commit 4d8db2b81da937e58200135e680f0a95b27bd657
Author: Edward Hervey <bilboed bilboed com>
Date: Sat Apr 25 16:06:40 2009 +0200
TimelineObject: Cleanup selected property.
---
pitivi/timeline/timeline.py | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index f21c6a5..ab27308 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -58,6 +58,7 @@ class TimelineObject(Signallable, Loggable):
self.track_objects = []
self.timeline = None
self.link = None
+ self._selected = False
def copy(self):
cls = self.__class__
@@ -183,13 +184,17 @@ class TimelineObject(Signallable, Loggable):
# True when the timeline object is part of the track object's current
# selection.
- __selected = False
-
def _getSelected(self):
- return self.__selected
+ return self._selected
def setSelected(self, state):
- self.__selected = state
+ """
+ Sets the selected state of the object.
+
+ @param state: L{True} if the object should be selected.
+ @type state: L{bool}
+ """
+ self._selected = state
for obj in self.track_objects:
obj.setObjectSelected(state)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]