From ce5520455f00a9506fb9dc524546c96c2affbddc Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 28 Sep 2006 03:29:23 +0000 Subject: [PATCH] * src/ReportBase/_StyleEditor.py: Make style editor not modal * src/glade/gramps.glade: Make style editor not modal svn: r7334 --- ChangeLog | 4 ++++ src/ReportBase/_StyleEditor.py | 5 +++++ src/glade/gramps.glade | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e9d373ee5..41fbd6d7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-09-27 Brian Matherly + * src/ReportBase/_StyleEditor.py: Make style editor not modal + * src/glade/gramps.glade: Make style editor not modal + 2006-09-26 Brian Matherly * src/GrampsLogger/_ErrorReportAssistant.py: Fix typo. diff --git a/src/ReportBase/_StyleEditor.py b/src/ReportBase/_StyleEditor.py index 2df59b6bf..24004774e 100644 --- a/src/ReportBase/_StyleEditor.py +++ b/src/ReportBase/_StyleEditor.py @@ -215,6 +215,11 @@ class StyleEditor: for p_name in names: self.plist.add([p_name],self.style.get_style(p_name)) self.plist.select_row(0) + + if self.parent: + self.window.set_transient_for(parent.window) + self.window.run() + self.window.destroy() def draw(self,name,p): """Updates the display with the selected paragraph.""" diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade index cd1a9d23f..d5929e687 100644 --- a/src/glade/gramps.glade +++ b/src/glade/gramps.glade @@ -2740,7 +2740,7 @@ GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE - True + False True False True