[meld] linkmap: Slightly improve some variable locality
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] linkmap: Slightly improve some variable locality
- Date: Sun, 2 Oct 2016 00:12:50 +0000 (UTC)
commit 6751e06bb0635b095b7181caa771e3f7f476b6f5
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Oct 1 09:32:42 2016 +1000
linkmap: Slightly improve some variable locality
meld/linkmap.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/meld/linkmap.py b/meld/linkmap.py
index c50b50a..c86d7da 100644
--- a/meld/linkmap.py
+++ b/meld/linkmap.py
@@ -52,17 +52,16 @@ class LinkMap(Gtk.DrawingArea):
if not self.filediff:
return
- context.set_line_width(1.0)
- allocation = self.get_allocation()
-
pix_start = [t.get_visible_rect().y for t in self.views]
y_offset = [
t.translate_coordinates(self, 0, 0)[1] + 1 for t in self.views]
clip_y = min(y_offset) - 1
clip_height = max(t.get_visible_rect().height for t in self.views) + 2
+ allocation = self.get_allocation()
context.rectangle(0, clip_y, allocation.width, clip_height)
context.clip()
+ context.set_line_width(1.0)
stylecontext = self.get_style_context()
Gtk.render_background(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]