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:
Nick Hall
2015-05-22 17:48:33 +01:00
parent dd68fbf75d
commit cd1a6ba45a
34 changed files with 37 additions and 37 deletions

View File

@@ -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)