8128: GtkDialog mapped without a transient parent

This commit is contained in:
Paul Franklin 2015-12-30 21:43:31 -08:00
parent 85e4a29af4
commit 76315be47d

View File

@ -84,6 +84,7 @@ class ErrorView(object):
self.top = Gtk.Dialog(title) self.top = Gtk.Dialog(title)
try: try:
self.top.set_transient_for(self.top.list_toplevels()[-2]) self.top.set_transient_for(self.top.list_toplevels()[-2])
self.top.set_keep_above(True)
except IndexError: except IndexError:
self.top.set_position(Gtk.WindowPosition.CENTER) self.top.set_position(Gtk.WindowPosition.CENTER)
self.top.set_urgency_hint(True) self.top.set_urgency_hint(True)