Commit a34df4fa authored by Kai Willadsen's avatar Kai Willadsen

diffmap, linkmap: Fix style initialisation

parent ea0e96f7
......@@ -41,6 +41,7 @@ class DiffMap(Gtk.DrawingArea):
self._scroll_height = 0
self._setup = False
self._width = 10
self.do_style_updated()
def setup(self, scrollbar, change_chunk_fn):
for (o, h) in self._handlers:
......
......@@ -39,6 +39,7 @@ class LinkMap(Gtk.DrawingArea):
if self.get_direction() == Gtk.TextDirection.RTL:
self.views.reverse()
self.view_indices = [filediff.textview.index(t) for t in self.views]
self.do_style_updated()
def do_style_updated(self, *args):
Gtk.DrawingArea.do_style_updated(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment