From bfa7687058e2ee51dce181c4547c68f3969f942c Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 9 Jan 2010 13:40:40 +0000 Subject: [PATCH] Fixed code that gave warning: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed svn: r14003 --- src/plugins/view/grampletview.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/view/grampletview.py b/src/plugins/view/grampletview.py index d3289a42f..5fe345010 100644 --- a/src/plugins/view/grampletview.py +++ b/src/plugins/view/grampletview.py @@ -277,8 +277,6 @@ class GrampletWindow(ManagedWindow.ManagedWindow): self.gramplet.set_state("minimized") else: self.gramplet.set_state("maximized") - parent = self.gramplet.viewpage.get_column_frame(self.gramplet.column) - self.gramplet.mainframe.reparent(parent) viewpage = self.gramplet.viewpage col = self.gramplet.column stack = [] @@ -289,7 +287,8 @@ class GrampletWindow(ManagedWindow.ManagedWindow): stack.append(gframe) expand = self.gramplet.state == "maximized" and self.gramplet.expand 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: gramplet = viewpage.frame_map[str(gframe)] expand = gramplet.state == "maximized" and gramplet.expand