[pitivi] TimelineObject: Cleanup selected property.



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]