From d5c4a71ee2e3bce60fc9c06782a29eceb3e42686 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Fri, 21 Oct 2016 23:05:10 +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 61cefb854..99982879a 100644 --- a/gramps/gui/plug/export/_exportassistant.py +++ b/gramps/gui/plug/export/_exportassistant.py @@ -120,7 +120,6 @@ class ExportAssistant(Gtk.Assistant, ManagedWindow) : ManagedWindow.set_window(self, self, None, self.top_title, isWindow=True) self.set_position(Gtk.WindowPosition.CENTER_ON_PARENT) - 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 a7bccf9cf..f2bf0a2b8 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 #--------------------------------------------------------------------