center report dialogs on parent window
This commit is contained in:
parent
89b3eb0a34
commit
1000c1b5cb
@ -163,7 +163,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
self.ok = self.window.add_button(_('_OK'), Gtk.ResponseType.OK)
|
self.ok = self.window.add_button(_('_OK'), Gtk.ResponseType.OK)
|
||||||
self.ok.connect('clicked', self.on_ok_clicked)
|
self.ok.connect('clicked', self.on_ok_clicked)
|
||||||
|
|
||||||
self.window.set_position(Gtk.WindowPosition.CENTER)
|
self.window.set_position(Gtk.WindowPosition.CENTER_ON_PARENT)
|
||||||
self.window.set_default_size(600, -1)
|
self.window.set_default_size(600, -1)
|
||||||
|
|
||||||
# Set up and run the dialog. These calls are not in top down
|
# Set up and run the dialog. These calls are not in top down
|
||||||
|
Loading…
Reference in New Issue
Block a user