Skip to content

Commit 68a7f0e

Browse files
committed
linkmap: Fix for 3.20, where GtkDrawingArea doesn't draw the background
According to bug #761341, this is the expected fix.
1 parent 4e17a7d commit 68a7f0e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

meld/linkmap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ def do_draw(self, context):
6464
context.rectangle(0, clip_y, allocation.width, clip_height)
6565
context.clip()
6666

67+
stylecontext = self.get_style_context()
68+
Gtk.render_background(
69+
stylecontext, context, 0, clip_y, allocation.width, clip_height)
70+
6771
height = allocation.height
6872
visible = [self.views[0].get_line_num_for_y(pix_start[0]),
6973
self.views[0].get_line_num_for_y(pix_start[0] + height),

0 commit comments

Comments
 (0)