When you close a detached gramplet, need to set active to the same as its viewpage

svn: r14171
This commit is contained in:
Doug Blank 2010-01-29 23:49:31 +00:00
parent 27c20ccaeb
commit 4aea0543b2

View File

@ -288,6 +288,7 @@ class GrampletWindow(ManagedWindow.ManagedWindow):
column = viewpage.columns[col]
parent = self.gramplet.viewpage.get_column_frame(self.gramplet.column)
self.gramplet.mainframe.reparent(parent)
self.gramplet.pui.active = self.gramplet.viewpage.active
for gframe in stack:
gramplet = viewpage.frame_map[str(gframe)]
expand = gramplet.state == "maximized" and gramplet.expand