Re: [PATCH] focus pane modified with linkmap button
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list <meld-list gnome org>
- Subject: Re: [PATCH] focus pane modified with linkmap button
- Date: Fri, 17 Apr 2009 00:37:17 +0200
and now the patch...
--
Vincent Legoll
Index: filediff.py
===================================================================
--- filediff.py (revision 1349)
+++ filediff.py (working copy)
@@ -1246,18 +1246,21 @@
b1 = self.textbuffer[dst]
if self.keymask & MASK_SHIFT: # delete
b0.delete(b0.get_iter_at_line(chunk[0]), b0.get_iter_at_line(chunk[1]))
+ self.scheduler.add_task(self.textview[src].grab_focus)
elif self.keymask & MASK_CTRL: # copy up or down
t0 = b0.get_text( b0.get_iter_at_line(chunk[0]), b0.get_iter_at_line(chunk[1]), 0)
if event.y - rect[1] < 0.5 * rect[3]: # copy up
b1.insert_with_tags_by_name(b1.get_iter_at_line(chunk[2]), t0, "edited line")
else: # copy down
b1.insert_with_tags_by_name(b1.get_iter_at_line(chunk[3]), t0, "edited line")
+ self.scheduler.add_task(self.textview[dst].grab_focus)
else: # replace
t0 = b0.get_text( b0.get_iter_at_line(chunk[0]), b0.get_iter_at_line(chunk[1]), 0)
self.on_text_begin_user_action()
b1.delete(b1.get_iter_at_line(chunk[2]), b1.get_iter_at_line(chunk[3]))
b1.insert_with_tags_by_name(b1.get_iter_at_line(chunk[2]), t0, "edited line")
self.on_text_end_user_action()
+ self.scheduler.add_task(self.textview[dst].grab_focus)
return True
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]