[pitivi/ges: 76/287] ui: Make the controller Loggable
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 76/287] ui: Make the controller Loggable
- Date: Thu, 15 Mar 2012 16:32:13 +0000 (UTC)
commit f55d30624cfe6e183320df5b1d3c3610c5048374
Author: Thibault Saunier <thibault saunier collabora com>
Date: Wed Dec 7 10:13:38 2011 -0300
ui: Make the controller Loggable
pitivi/ui/controller.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/controller.py b/pitivi/ui/controller.py
index 1b0dbdf..e6b4b15 100644
--- a/pitivi/ui/controller.py
+++ b/pitivi/ui/controller.py
@@ -20,8 +20,10 @@
# Boston, MA 02110-1301, USA.
import gtk.gdk
-from pitivi.receiver import receiver, handler
+
from pitivi.ui.point import Point
+from pitivi.log.loggable import Loggable
+from pitivi.receiver import receiver, handler
# Controllers are reusable and implement specific behaviors. Currently this
# Includes only click, and drag. Multiple controllers could be attached to a
@@ -33,7 +35,7 @@ from pitivi.ui.point import Point
ARROW = gtk.gdk.Cursor(gtk.gdk.ARROW)
-class Controller(object):
+class Controller(Loggable):
"""A controller which implements drag-and-drop bahavior on connected view
objects. Subclasses may override the drag_start, drag_end, pos, and
@@ -64,6 +66,7 @@ class Controller(object):
def __init__(self, view=None):
object.__init__(self)
self._view = view
+ Loggable.__init__(self)
## convenience functions
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]