[meld/ui-next: 28/35] actiongutter: Fix editable change toggling



commit ba305f093749913576953e8aa53af0c77907c221
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Feb 15 09:53:25 2019 +1000

    actiongutter: Fix editable change toggling
    
    This actually worked anyway because the draw was queued elsewhere, but
    this was a latent bug nonetheless.

 meld/actiongutter.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/actiongutter.py b/meld/actiongutter.py
index 3801a3c8..b6bffcd6 100644
--- a/meld/actiongutter.py
+++ b/meld/actiongutter.py
@@ -119,7 +119,7 @@ class ActionGutter(Gtk.DrawingArea):
             self._source_view.disconnect(self._source_editable_connect_id)
 
         self._source_editable_connect_id = view.connect(
-            'notify::editable', lambda *args: self.queue_draw)
+            'notify::editable', lambda *args: self.queue_draw())
         self._source_view = view
         self.queue_draw()
 
@@ -140,7 +140,7 @@ class ActionGutter(Gtk.DrawingArea):
             self._target_view.disconnect(self._target_editable_connect_id)
 
         self._target_editable_connect_id = view.connect(
-            'notify::editable', lambda *args: self.queue_draw)
+            'notify::editable', lambda *args: self.queue_draw())
         self._target_view = view
         self.queue_draw()
 


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