center errorview dialog, and shorten it too

This commit is contained in:
Paul Franklin 2016-12-17 18:27:57 -08:00
parent 9c92bb8551
commit 1742d44d35

View File

@ -84,12 +84,13 @@ class ErrorView:
self.top = Gtk.Dialog(title)
try:
self.top.set_transient_for(self.top.list_toplevels()[-2])
self.top.set_position(Gtk.WindowPosition.CENTER)
self.top.set_keep_above(True)
except IndexError:
self.top.set_position(Gtk.WindowPosition.CENTER)
self.top.set_urgency_hint(True)
self.top.set_keep_above(True)
self.top.set_default_size(800,-1)
self.top.set_default_size(600,-1)
vbox = self.top.get_content_area()
vbox.set_spacing(5)
self.top.set_border_width(12)