Fix Gtk deprecatioon ScrolledWindow.add_with_viewport
This commit is contained in:
parent
cea48b618f
commit
17f4d93363
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user