Browse code

Use Gtk.Window.new

Fixes https://github.com/jrfonseca/xdot.py/issues/84

John Vandenberg authored on 08/12/2020 04:16:32 • José Fonseca committed on 08/12/2020 10:42:12
Showing 1 changed files

... ...
@@ -67,7 +67,7 @@ class NullAction(DragAction):
67 67
 
68 68
     # FIXME: The NullAction class is probably not the best place to hold this
69 69
     # sort mutable global state.
70
-    _tooltip_window = Gtk.Window(Gtk.WindowType.POPUP)
70
+    _tooltip_window = Gtk.Window.new(Gtk.WindowType.POPUP)
71 71
     _tooltip_label = Gtk.Label(xalign=0, yalign=0)
72 72
     _tooltip_item = None
73 73