[meld] linkmap: Don't re-clip the context; this is done for us already
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] linkmap: Don't re-clip the context; this is done for us already
- Date: Sat, 8 Oct 2016 00:22:53 +0000 (UTC)
commit 715eaeb0c301ad04d7421de17ef69cbf009a973a
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Oct 3 08:39:09 2016 +1000
linkmap: Don't re-clip the context; this is done for us already
meld/linkmap.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meld/linkmap.py b/meld/linkmap.py
index 63b7698..895d455 100644
--- a/meld/linkmap.py
+++ b/meld/linkmap.py
@@ -60,13 +60,11 @@ class LinkMap(Gtk.DrawingArea):
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(
stylecontext, context, 0, clip_y, allocation.width, clip_height)
+ context.set_line_width(1.0)
height = allocation.height
visible = [self.views[0].get_line_num_for_y(pix_start[0]),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]