From 17f4d93363ef1028866e71d9395705f2d69e417b Mon Sep 17 00:00:00 2001 From: prculley Date: Fri, 13 Sep 2019 16:42:51 -0500 Subject: [PATCH] Fix Gtk deprecatioon ScrolledWindow.add_with_viewport --- gramps/plugins/gramplet/fanchart2waygramplet.py | 2 +- gramps/plugins/view/fanchart2wayview.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/gramplet/fanchart2waygramplet.py b/gramps/plugins/gramplet/fanchart2waygramplet.py index 2666a61ea..1d8a1c553 100644 --- a/gramps/plugins/gramplet/fanchart2waygramplet.py +++ b/gramps/plugins/gramplet/fanchart2waygramplet.py @@ -70,7 +70,7 @@ class FanChart2WayGramplet(FanChart2WayGrampsGUI, Gramplet): self.on_popup)) # Replace the standard textview with the fan chart widget: self.gui.get_container_widget().remove(self.gui.textview) - self.gui.get_container_widget().add_with_viewport(self.fan) + self.gui.get_container_widget().add(self.fan) # Make sure it is visible: self.fan.show() diff --git a/gramps/plugins/view/fanchart2wayview.py b/gramps/plugins/view/fanchart2wayview.py index d536b37cd..37f815063 100644 --- a/gramps/plugins/view/fanchart2wayview.py +++ b/gramps/plugins/view/fanchart2wayview.py @@ -135,7 +135,7 @@ class FanChart2WayView(fanchart2way.FanChart2WayGrampsGUI, NavigationView): self.scrolledwindow.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) self.fan.show_all() - self.scrolledwindow.add_with_viewport(self.fan) + self.scrolledwindow.add(self.fan) return self.scrolledwindow