pitivi r1389 - in trunk/pitivi: . ui
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1389 - in trunk/pitivi: . ui
- Date: Fri, 28 Nov 2008 17:28:01 +0000 (UTC)
Author: edwardrv
Date: Fri Nov 28 17:28:01 2008
New Revision: 1389
URL: http://svn.gnome.org/viewvc/pitivi?rev=1389&view=rev
Log:
fixed big in high-level click code
Modified:
trunk/pitivi/receiver.py
trunk/pitivi/ui/controller.py
Modified: trunk/pitivi/receiver.py
==============================================================================
--- trunk/pitivi/receiver.py (original)
+++ trunk/pitivi/receiver.py Fri Nov 28 17:28:01 2008
@@ -33,6 +33,9 @@
for sig, hdlr in self.handlers.iteritems():
value.connect(sig, MethodType(hdlr, instance))
self.sender = value
+ notify = "after_set_" + self.__name__
+ if hasattr(instance, notify):
+ getattr(instance, notify)()
def __del__(self, instance):
raise NotImplementedError
Modified: trunk/pitivi/ui/controller.py
==============================================================================
--- trunk/pitivi/ui/controller.py (original)
+++ trunk/pitivi/ui/controller.py Fri Nov 28 17:28:01 2008
@@ -92,10 +92,11 @@
self.drag_end()
if self._ptr_within:
self._view.focus()
+ point = self.from_item_event(item, event)
if self._last_click and (event.time - self._last_click < 400):
- self.double_click(Point.from_event(self._canvas, event))
+ self.double_click(point)
else:
- self.click(Point.from_event(self._canvas, event))
+ self.click(point)
self._last_click = event.time
else:
self._view.normal()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]