Lookup action in correct window Fixes #8560
This commit is contained in:
parent
86faba2649
commit
54502446a3
|
@ -98,7 +98,7 @@ class MessageWindow(object):
|
||||||
else:
|
else:
|
||||||
self.parent_paned.add(self.notebook)
|
self.parent_paned.add(self.notebook)
|
||||||
self.parent_paned.pack2(self.notebook, resize=True, shrink=True)
|
self.parent_paned.pack2(self.notebook, resize=True, shrink=True)
|
||||||
get_action('show-roster').set_enabled(True)
|
self.window.lookup_action('show-roster').set_enabled(True)
|
||||||
orig_window.destroy()
|
orig_window.destroy()
|
||||||
del orig_window
|
del orig_window
|
||||||
|
|
||||||
|
@ -626,7 +626,7 @@ class MessageWindow(object):
|
||||||
# Don't close parent window, just remove the child
|
# Don't close parent window, just remove the child
|
||||||
child = self.parent_paned.get_child2()
|
child = self.parent_paned.get_child2()
|
||||||
self.parent_paned.remove(child)
|
self.parent_paned.remove(child)
|
||||||
get_action('show-roster').set_enabled(False)
|
self.window.lookup_action('show-roster').set_enabled(False)
|
||||||
else:
|
else:
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
return # don't show_title, we are dead
|
return # don't show_title, we are dead
|
||||||
|
@ -1272,7 +1272,7 @@ class MessageWindowMgr(GObject.GObject):
|
||||||
# Don't close parent window, just remove the child
|
# Don't close parent window, just remove the child
|
||||||
child = w.parent_paned.get_child2()
|
child = w.parent_paned.get_child2()
|
||||||
w.parent_paned.remove(child)
|
w.parent_paned.remove(child)
|
||||||
get_action('show-roster').set_enabled(False)
|
self.parent_win.lookup_action('show-roster').set_enabled(False)
|
||||||
gtkgui_helpers.resize_window(w.window,
|
gtkgui_helpers.resize_window(w.window,
|
||||||
gajim.config.get('roster_width'),
|
gajim.config.get('roster_width'),
|
||||||
gajim.config.get('roster_height'))
|
gajim.config.get('roster_height'))
|
||||||
|
|
Loading…
Reference in New Issue