Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-09-21 09:00:43 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-09-21 09:00:43 (GMT)
commitc034c405f55fb618e114ec09d712474675b1b785 (patch)
treee86feedf35ee45554bad5843c6c16086a5778599
parenta7ebe1381dde0664035323cb6c5da6907c6fcb57 (diff)
Make canvas emit motion-notify-event during pointer motion. dslo#1402
-rw-r--r--terminal.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/terminal.py b/terminal.py
index 356f6b7..9232545 100644
--- a/terminal.py
+++ b/terminal.py
@@ -241,6 +241,9 @@ class TerminalActivity(activity.Activity):
vt.connect("child-exited", self.__tab_child_exited_cb)
vt.connect("window-title-changed", self.__tab_title_changed_cb)
+ # FIXME have to resend motion events to parent, see #1402
+ vt.connect('motion-notify-event', self.__motion_notify_cb)
+
vt.drag_dest_set(gtk.DEST_DEFAULT_MOTION|gtk.DEST_DEFAULT_DROP,
[('text/plain', 0, 0), ('STRING', 0, 1)],
gtk.gdk.ACTION_DEFAULT|
@@ -304,6 +307,9 @@ class TerminalActivity(activity.Activity):
return index
+ def __motion_notify_cb(self, widget, event):
+ self.canvas.parent.emit('motion-notify-event', event)
+
def __become_root_cb(self, button):
vt = self._notebook.get_nth_page(self._notebook.get_current_page()).vt
vt.feed('\r\n')