[meld] diffmap: Call our correct parent init



commit 7277d87f4d98b531e458a50e41129c3bb3eba615
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Mar 12 09:26:50 2017 +1000

    diffmap: Call our correct parent init

 meld/diffmap.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meld/diffmap.py b/meld/diffmap.py
index 50903c3..7548cdf 100644
--- a/meld/diffmap.py
+++ b/meld/diffmap.py
@@ -18,7 +18,6 @@ import collections
 
 import cairo
 
-from gi.repository import GObject
 from gi.repository import Gdk
 from gi.repository import Gtk
 
@@ -31,7 +30,7 @@ class DiffMap(Gtk.DrawingArea):
     __gtype_name__ = "DiffMap"
 
     def __init__(self):
-        GObject.GObject.__init__(self)
+        Gtk.DrawingArea.__init__(self)
         self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
         self._scrolladj = None
         self._difffunc = lambda: None


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