From 0307c10244882ffe103d1f07070242a7b4167f40 Mon Sep 17 00:00:00 2001 From: prculley Date: Mon, 30 Jan 2017 08:59:27 -0600 Subject: [PATCH] Fix reports papermenu to properly destroy glade objects --- gramps/gui/plug/report/_papermenu.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gui/plug/report/_papermenu.py b/gramps/gui/plug/report/_papermenu.py index 4f43fcfd5..90db3df25 100644 --- a/gramps/gui/plug/report/_papermenu.py +++ b/gramps/gui/plug/report/_papermenu.py @@ -138,7 +138,7 @@ class PaperFrame(Gtk.Box): glade_xml = Glade() self.paper_grid = glade_xml.get_object('paper_grid') - + self.top = glade_xml.get_object('papermenu') # get all the widgets widgets = ('pwidth', 'pheight', 'lmargin', 'rmargin', 'tmargin', @@ -174,7 +174,10 @@ class PaperFrame(Gtk.Box): self.bmargin.set_text("%.2f" % margins[3]) self.paper_grid.show_all() + # Shift the grid from glade toplevel window to this box self.paper_grid.reparent(self) + # need to get rid of glade toplevel now that we are done with it. + self.top.destroy() self.units_changed(self.metric) self.size_changed(None)