Commit ef3ba1b8 authored by Kai Willadsen's avatar Kai Willadsen

diffmap: Call the wrong function, for GTK+'s insanity

Even though queuing a resize here should be totally fine, GTK+
completely loses it and complains about allocation issues. Given that
this is code that should basically never be necessary in our layout
(i.e., every time a scrollbar gets a size-allocate, we can basically
guarantee that DiffMap will as well) and given how annoying these
warnings are, we'll give in and just do the wrong thing.
parent 7277d87f
......@@ -108,7 +108,7 @@ class DiffMap(Gtk.DrawingArea):
self._scroll_height = allocation.height
self._width = max(allocation.width, 10)
self._cached_map = None
self.queue_resize()
self.queue_allocate()
def do_draw(self, context):
if not self._setup:
......
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