From e5a7fdc51255fb65b3537b475854bed39f28c130 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Fri, 21 Oct 2016 23:13:24 +0200 Subject: [PATCH] 8250 and 9736 : remove patchs. need to found another solution. --- gramps/gui/plug/export/_exportassistant.py | 1 - gramps/gui/plug/quick/_textbufdoc.py | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/gramps/gui/plug/export/_exportassistant.py b/gramps/gui/plug/export/_exportassistant.py index 227cda1a0..bf9b7ead7 100644 --- a/gramps/gui/plug/export/_exportassistant.py +++ b/gramps/gui/plug/export/_exportassistant.py @@ -120,7 +120,6 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) : #set_window is present in both parent classes ManagedWindow.set_window(self, self, None, self.top_title, isWindow=True) - self.set_modal(True) #set up callback method for the export plugins self.callback = self.pulse_progressbar diff --git a/gramps/gui/plug/quick/_textbufdoc.py b/gramps/gui/plug/quick/_textbufdoc.py index 7dfb8b6c5..38bf88c9a 100644 --- a/gramps/gui/plug/quick/_textbufdoc.py +++ b/gramps/gui/plug/quick/_textbufdoc.py @@ -53,13 +53,11 @@ LEFT,RIGHT,CENTER = 'LEFT','RIGHT','CENTER' _WIDTH_IN_CHARS = 72 class DisplayBuf(ManagedWindow): - def __init__(self, title, document, modal=False): + def __init__(self, title, document): self.title = title - last_managed_window = document.uistate.gwm.window_tree[-1] ManagedWindow.__init__(self, document.uistate, [], document) - # We set the parent to the last managed window (transient_for) - self.set_window(Gtk.Dialog("",last_managed_window, + self.set_window(Gtk.Dialog("",document.uistate.window, Gtk.DialogFlags.DESTROY_WITH_PARENT, (_('_Close'), Gtk.ResponseType.CLOSE)), None, title) @@ -72,7 +70,6 @@ class DisplayBuf(ManagedWindow): scrolled_window.add(document.text_view) self.window.vbox.pack_start(scrolled_window, True, True, 0) self.window.show_all() - self.window.set_modal(modal) def build_menu_names(self, obj): return ('View', _('Quick View')) @@ -157,7 +154,7 @@ class TextBufDoc(BaseDoc, TextDoc): if container: return DocumentManager(_('Quick View'), self, container) else: - DisplayBuf(_('Quick View'), self, modal=True) + DisplayBuf(_('Quick View'), self) return #--------------------------------------------------------------------