Use add instead of add_with_viewport
The add method adds a viewport where necessary when adding a child to a scrolled window. The add_with_viewport method is deprecated.
This commit is contained in:
@@ -1371,7 +1371,7 @@ class ClipboardWindow(ManagedWindow):
|
||||
mtv = MultiTreeView(self.dbstate, self.uistate, _("Clipboard"))
|
||||
scrolledwindow = self.top.get_object('scrolledwindow86')
|
||||
scrolledwindow.remove(objectlist)
|
||||
scrolledwindow.add_with_viewport(mtv)
|
||||
scrolledwindow.add(mtv)
|
||||
self.object_list = ClipboardListView(self.dbstate, mtv)
|
||||
self.object_list.get_selection().connect('changed',
|
||||
self.set_clear_btn_sensitivity)
|
||||
|
Reference in New Issue
Block a user