Fixed code that gave warning: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed
svn: r14003
This commit is contained in:
parent
de2d669763
commit
bfa7687058
@ -277,8 +277,6 @@ class GrampletWindow(ManagedWindow.ManagedWindow):
|
|||||||
self.gramplet.set_state("minimized")
|
self.gramplet.set_state("minimized")
|
||||||
else:
|
else:
|
||||||
self.gramplet.set_state("maximized")
|
self.gramplet.set_state("maximized")
|
||||||
parent = self.gramplet.viewpage.get_column_frame(self.gramplet.column)
|
|
||||||
self.gramplet.mainframe.reparent(parent)
|
|
||||||
viewpage = self.gramplet.viewpage
|
viewpage = self.gramplet.viewpage
|
||||||
col = self.gramplet.column
|
col = self.gramplet.column
|
||||||
stack = []
|
stack = []
|
||||||
@ -289,7 +287,8 @@ class GrampletWindow(ManagedWindow.ManagedWindow):
|
|||||||
stack.append(gframe)
|
stack.append(gframe)
|
||||||
expand = self.gramplet.state == "maximized" and self.gramplet.expand
|
expand = self.gramplet.state == "maximized" and self.gramplet.expand
|
||||||
column = viewpage.columns[col]
|
column = viewpage.columns[col]
|
||||||
column.pack_start(self.gramplet.mainframe, expand=expand)
|
parent = self.gramplet.viewpage.get_column_frame(self.gramplet.column)
|
||||||
|
self.gramplet.mainframe.reparent(parent)
|
||||||
for gframe in stack:
|
for gframe in stack:
|
||||||
gramplet = viewpage.frame_map[str(gframe)]
|
gramplet = viewpage.frame_map[str(gframe)]
|
||||||
expand = gramplet.state == "maximized" and gramplet.expand
|
expand = gramplet.state == "maximized" and gramplet.expand
|
||||||
|
Loading…
Reference in New Issue
Block a user