File pr_85.patch of Package python-xdot

From dd87cabc952d1542084e47b789fe8d3139113eb9 Mon Sep 17 00:00:00 2001
From: John Vandenberg <jayvdb@gmail.com>
Date: Tue, 8 Dec 2020 11:16:32 +0700
Subject: [PATCH] Use Gtk.Window.new

Fixes https://github.com/jrfonseca/xdot.py/issues/84
---
 xdot/ui/actions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xdot/ui/actions.py b/xdot/ui/actions.py
index 81782f4..635cf30 100644
--- a/xdot/ui/actions.py
+++ b/xdot/ui/actions.py
@@ -67,7 +67,7 @@ class NullAction(DragAction):
 
     # FIXME: The NullAction class is probably not the best place to hold this
     # sort mutable global state.
-    _tooltip_window = Gtk.Window(Gtk.WindowType.POPUP)
+    _tooltip_window = Gtk.Window.new(Gtk.WindowType.POPUP)
     _tooltip_label = Gtk.Label(xalign=0, yalign=0)
     _tooltip_item = None
 
openSUSE Build Service is sponsored by