Fix Gtk deprecatioon ScrolledWindow.add_with_viewport

This commit is contained in:
prculley 2019-09-13 16:42:51 -05:00 committed by Nick Hall
parent cea48b618f
commit 17f4d93363
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class FanChart2WayGramplet(FanChart2WayGrampsGUI, Gramplet):
self.on_popup)) self.on_popup))
# Replace the standard textview with the fan chart widget: # Replace the standard textview with the fan chart widget:
self.gui.get_container_widget().remove(self.gui.textview) 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: # Make sure it is visible:
self.fan.show() self.fan.show()

View File

@ -135,7 +135,7 @@ class FanChart2WayView(fanchart2way.FanChart2WayGrampsGUI, NavigationView):
self.scrolledwindow.set_policy(Gtk.PolicyType.AUTOMATIC, self.scrolledwindow.set_policy(Gtk.PolicyType.AUTOMATIC,
Gtk.PolicyType.AUTOMATIC) Gtk.PolicyType.AUTOMATIC)
self.fan.show_all() self.fan.show_all()
self.scrolledwindow.add_with_viewport(self.fan) self.scrolledwindow.add(self.fan)
return self.scrolledwindow return self.scrolledwindow