trackplacer: clean up position indicator on leaving window.

This commit is contained in:
Eric S. Raymond 2008-10-13 14:32:07 +00:00
parent 7f87e3782c
commit f88068d6b1

View File

@ -332,6 +332,9 @@ class TrackEditor:
self.drawing_area.connect("motion_notify_event", self.motion_notify_event)
self.drawing_area.connect("button_press_event", self.button_press_event)
self.drawing_area.connect("leave_notify_event",
lambda w, e: self.coordwin.set_text(""))
self.drawing_area.set_events(gtk.gdk.EXPOSURE_MASK
| gtk.gdk.LEAVE_NOTIFY_MASK
| gtk.gdk.BUTTON_PRESS_MASK