remove deprecated "reparent" call

This commit is contained in:
Yann Leboulanger 2015-07-18 16:00:57 +02:00
parent 3e843b8e55
commit a6c0a14e2f
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ class MessageWindow(object):
orig_window = self.window
self.window = parent_window
self.parent_paned = parent_paned
self.notebook.reparent(self.parent_paned)
old_parent = self.notebook.get_parent()
old_parent.remove(self.notebook)
self.parent_paned.add(self.notebook)
self.parent_paned.pack2(self.notebook, resize=True, shrink=True)
gajim.interface.roster.xml.get_object('show_roster_menuitem').\
set_sensitive(True)