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



commit ef3ba1b87d2cb775901ac9780d464b32e5b3942c
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Mar 12 09:31:25 2017 +1000

    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.

 meld/diffmap.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/diffmap.py b/meld/diffmap.py
index 7548cdf..3520251 100644
--- a/meld/diffmap.py
+++ b/meld/diffmap.py
@@ -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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]